Code improvements.
This commit is contained in:
@@ -36,15 +36,12 @@ public class PartyMember implements ITargetTypeHandler
|
||||
activeChar.sendPacket(SystemMessageId.THAT_IS_AN_INCORRECT_TARGET);
|
||||
return EMPTY_TARGET_LIST;
|
||||
}
|
||||
if (!target.isDead())
|
||||
if (!target.isDead() && ((target == activeChar) || (activeChar.isInParty() && target.isInParty() && (activeChar.getParty().getLeaderObjectId() == target.getParty().getLeaderObjectId())) || ((activeChar.isPlayer() && target.isSummon() && ((activeChar.getPet() == target) || activeChar.hasServitor(target.getObjectId()))) || (activeChar.isSummon() && target.isPlayer() && ((activeChar == target.getPet()) || target.hasServitor(activeChar.getObjectId()))))))
|
||||
{
|
||||
if ((target == activeChar) || (activeChar.isInParty() && target.isInParty() && (activeChar.getParty().getLeaderObjectId() == target.getParty().getLeaderObjectId())) || ((activeChar.isPlayer() && target.isSummon() && ((activeChar.getPet() == target) || activeChar.hasServitor(target.getObjectId()))) || (activeChar.isSummon() && target.isPlayer() && ((activeChar == target.getPet()) || target.hasServitor(activeChar.getObjectId())))))
|
||||
return new L2Character[]
|
||||
{
|
||||
return new L2Character[]
|
||||
{
|
||||
target
|
||||
};
|
||||
}
|
||||
target
|
||||
};
|
||||
}
|
||||
return EMPTY_TARGET_LIST;
|
||||
}
|
||||
|
Reference in New Issue
Block a user