mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-12 20:24:47 +00:00
Changed: Minor changes
This commit is contained in:
parent
ab13e00d54
commit
da117cb631
1 changed files with 20 additions and 17 deletions
|
@ -329,9 +329,11 @@ void CGuildMemberModule::_inviteCharacterInGuild(CGuildCharProxy& invitor, CGuil
|
|||
/// check guild and invited member allegiances compatibilities
|
||||
CGuild::TAllegiances guildAllegiance, invitedAllegiance;
|
||||
guildAllegiance = guild->getAllegiance();
|
||||
|
||||
CCharacter * invitedChar = PlayerManager.getChar(target.getId());
|
||||
if( invitedChar == 0 ) return;
|
||||
if (invitedChar == NULL) return;
|
||||
invitedAllegiance = invitedChar->getAllegiance();
|
||||
|
||||
if (invitedAllegiance.first != guildAllegiance.first && invitedAllegiance.first != PVP_CLAN::Neutral)
|
||||
{
|
||||
SM_STATIC_PARAMS_2( params, STRING_MANAGER::player, STRING_MANAGER::faction );
|
||||
|
@ -340,6 +342,7 @@ void CGuildMemberModule::_inviteCharacterInGuild(CGuildCharProxy& invitor, CGuil
|
|||
invitor.sendSystemMessage("GUILD_ICOMPATIBLE_ALLEGIANCE",params);
|
||||
return;
|
||||
}
|
||||
|
||||
if (invitedAllegiance.second != guildAllegiance.second && invitedAllegiance.second != PVP_CLAN::Neutral)
|
||||
{
|
||||
SM_STATIC_PARAMS_2( params, STRING_MANAGER::player, STRING_MANAGER::faction );
|
||||
|
|
Loading…
Reference in a new issue