Browse Source

removed obvious bug in guards dropping aggro

master
FatBoy-DOTC 2 years ago
parent
commit
b899708cd5
  1. 5
      src/engine/ai/MobileFSM.java

5
src/engine/ai/MobileFSM.java

@ -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;

Loading…
Cancel
Save