Browse Source

hate value reset when mob goes home

master
FatBoy-DOTC 1 year ago
parent
commit
b42a378ca8
  1. 3
      src/engine/ai/MobileFSM.java

3
src/engine/ai/MobileFSM.java

@ -505,6 +505,9 @@ public class MobileFSM { @@ -505,6 +505,9 @@ public class MobileFSM {
PowersBase recall = PowersManager.getPowerByToken(-1994153779);
PowersManager.useMobPower(mob, mob, recall, 40);
mob.setCombatTarget(null);
for (Entry playerEntry : mob.playerAgroMap.entrySet()) {
PlayerCharacter.getFromCache((int)playerEntry.getKey()).setHateValue(0);
}
}
}
private static void chaseTarget(Mob mob) {

Loading…
Cancel
Save