|
|
@ -1074,13 +1074,11 @@ public class MobAI { |
|
|
|
} |
|
|
|
} |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
if (mob.npcOwner.getCombatTarget() != null) |
|
|
|
if (mob.npcOwner.getCombatTarget() != null) |
|
|
|
if(mob.getCombatTarget() != null && mob.getCombatTarget().equals(mob.npcOwner.getCombatTarget()) == false) |
|
|
|
|
|
|
|
mob.setCombatTarget(mob.npcOwner.getCombatTarget()); |
|
|
|
mob.setCombatTarget(mob.npcOwner.getCombatTarget()); |
|
|
|
else |
|
|
|
else |
|
|
|
if(mob.getCombatTarget() != null) { |
|
|
|
if (mob.getCombatTarget() != null) |
|
|
|
mob.setCombatTarget(null); |
|
|
|
mob.setCombatTarget(null); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
CheckMobMovement(mob); |
|
|
|
CheckMobMovement(mob); |
|
|
|
CheckForAttack(mob); |
|
|
|
CheckForAttack(mob); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|