Browse Source

mobs now use enemy/notenemy for aggro rules

master
FatBoy-DOTC 2 years ago
parent
commit
60c2405cad
  1. 4
      src/engine/ai/MobileFSM.java

4
src/engine/ai/MobileFSM.java

@ -385,7 +385,9 @@ public class MobileFSM { @@ -385,7 +385,9 @@ public class MobileFSM {
if (!aiAgent.canSee(loadedPlayer))
continue;
// No aggro for this race type
if (aiAgent.notEnemy.contains(loadedPlayer.getRace().getRaceType()))
if (aiAgent.notEnemy.contains(loadedPlayer.getRace().getRaceType().getMonsterType()))
continue;
if(!aiAgent.enemy.contains(loadedPlayer.getRace().getRaceType().getMonsterType()))
continue;
if (MovementUtilities.inRangeToAggro(aiAgent, loadedPlayer)) {
aiAgent.setCombatTarget(loadedPlayer);

Loading…
Cancel
Save