Browse Source

mob region lookup

lakebane-strongholds
FatBoy-DOTC 5 months ago
parent
commit
c652379a5f
  1. 3
      src/engine/mobileAI/MobAI.java
  2. 2
      src/engine/objects/Mob.java

3
src/engine/mobileAI/MobAI.java

@ -871,7 +871,7 @@ public class MobAI { @@ -871,7 +871,7 @@ public class MobAI {
}
}
}
} else if (System.currentTimeMillis() > (aiAgent.deathTime + (aiAgent.spawnTime * 1000L))) {
}
if(Mob.discDroppers.contains(aiAgent))
return;
@ -879,6 +879,7 @@ public class MobAI { @@ -879,6 +879,7 @@ public class MobAI {
if(aiAgent.StrongholdGuardian || aiAgent.StrongholdEpic || aiAgent.StrongholdCommander)
return;
if (System.currentTimeMillis() > (aiAgent.deathTime + (aiAgent.spawnTime * 1000L))) {
if (!Zone.respawnQue.contains(aiAgent)) {
Zone.respawnQue.add(aiAgent);
}

2
src/engine/objects/Mob.java

@ -1285,7 +1285,7 @@ public class Mob extends AbstractIntelligenceAgent { @@ -1285,7 +1285,7 @@ public class Mob extends AbstractIntelligenceAgent {
}
setLoc(newLoc);
this.region = AbstractWorldObject.GetRegionByWorldObject(this);
this.region = Regions.GetRegionForTeleport(this.loc);//AbstractWorldObject.GetRegionByWorldObject(this);
//Next update will be end Loc, lets stop him here.
}

Loading…
Cancel
Save