Changeset 2240

Show
Ignore:
Timestamp:
07/05/08 18:52:29 (3 months ago)
Author:
DrHouse
Message:

Fixes out of range targets (pets) added to returning target array in this two cases: TARGET_ALLY, TARGET_CLAN.
Thanks Gigii-kun

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/L2_GameServer/java/net/sf/l2j/gameserver/model/L2Skill.java

    r2211 r2240  
    23352335                                targetList.add((L2Character) newTarget); 
    23362336                                if (((L2PcInstance) newTarget).getPet() != null) 
    2337                                         if (!Util.checkIfInRange(radius, activeChar, ((L2PcInstance) newTarget).getPet(), true)) 
     2337                                        if (Util.checkIfInRange(radius, activeChar, ((L2PcInstance) newTarget).getPet(), true)) 
    23382338                                        if ((targetType != SkillTargetType.TARGET_CORPSE_ALLY) && !(((L2PcInstance) newTarget).getPet().isDead())) 
    23392339                                            targetList.add(((L2PcInstance) newTarget).getPet()); 
     
    24122412                                targetList.add(newTarget); 
    24132413                                if (newTarget.getPet() != null) 
    2414                                         if (!Util.checkIfInRange(radius, activeChar, newTarget.getPet(), true)) 
     2414                                        if (Util.checkIfInRange(radius, activeChar, newTarget.getPet(), true)) 
    24152415                                                if ((targetType != SkillTargetType.TARGET_CORPSE_CLAN) && !(newTarget.getPet().isDead())) 
    24162416                                                        targetList.add(newTarget.getPet());