Browse Source

respawn work

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

2
src/engine/ai/MobileFSM.java

@ -303,11 +303,9 @@ public class MobileFSM { @@ -303,11 +303,9 @@ public class MobileFSM {
if (mob.BehaviourType.ordinal() == Enum.MobBehaviourType.GuardMinion.ordinal()) {
if (mob.npcOwner.isAlive() == false || ((Mob) mob.npcOwner).despawned == true) {
//minions don't respawn while guard captain is dead
if (mob.isAlive() == false) {
mob.deathTime = System.currentTimeMillis();
return;
}
}
CheckForRespawn(mob);
return;
}

Loading…
Cancel
Save