mob region lookup

This commit is contained in:
2024-07-15 19:08:40 -05:00
parent 61d34ab4ad
commit c652379a5f
2 changed files with 7 additions and 6 deletions
+6 -5
View File
@@ -871,14 +871,15 @@ public class MobAI {
} }
} }
} }
} else if (System.currentTimeMillis() > (aiAgent.deathTime + (aiAgent.spawnTime * 1000L))) { }
if(Mob.discDroppers.contains(aiAgent)) if(Mob.discDroppers.contains(aiAgent))
return; return;
if(aiAgent.StrongholdGuardian || aiAgent.StrongholdEpic || aiAgent.StrongholdCommander) if(aiAgent.StrongholdGuardian || aiAgent.StrongholdEpic || aiAgent.StrongholdCommander)
return; return;
if (System.currentTimeMillis() > (aiAgent.deathTime + (aiAgent.spawnTime * 1000L))) {
if (!Zone.respawnQue.contains(aiAgent)) { if (!Zone.respawnQue.contains(aiAgent)) {
Zone.respawnQue.add(aiAgent); Zone.respawnQue.add(aiAgent);
} }
+1 -1
View File
@@ -1285,7 +1285,7 @@ public class Mob extends AbstractIntelligenceAgent {
} }
setLoc(newLoc); 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. //Next update will be end Loc, lets stop him here.
} }