|
|
@ -38,11 +38,6 @@ public class MobileFSM { |
|
|
|
} |
|
|
|
} |
|
|
|
if (!CombatUtilities.inRangeToAttack(mob, target)) |
|
|
|
if (!CombatUtilities.inRangeToAttack(mob, target)) |
|
|
|
return; |
|
|
|
return; |
|
|
|
if(mob.BehaviourType.ordinal() == Enum.MobBehaviourType.GuardCaptain.ordinal()){ |
|
|
|
|
|
|
|
if(!GuardCanAggro(mob, (PlayerCharacter)mob.getCombatTarget())){ |
|
|
|
|
|
|
|
mob.setCombatTarget(null); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
switch (target.getObjectType()) { |
|
|
|
switch (target.getObjectType()) { |
|
|
|
case PlayerCharacter: |
|
|
|
case PlayerCharacter: |
|
|
|
PlayerCharacter targetPlayer = (PlayerCharacter) target; |
|
|
|
PlayerCharacter targetPlayer = (PlayerCharacter) target; |
|
|
|