From d67bf0bc648a957a8d7cfdac52aaa5a45a9f80df Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 15 Mar 2025 19:42:00 -0500 Subject: [PATCH] guards hotfix --- src/engine/mobileAI/MobAI.java | 1 + src/engine/objects/Mob.java | 4 +++- src/engine/objects/PlayerCharacter.java | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index 40bff4a8..e9784c99 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -742,6 +742,7 @@ public class MobAI { } } + mob.refresh(); switch (mob.BehaviourType) { case GuardCaptain: diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 40731e1b..61a24c7d 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1539,7 +1539,9 @@ public class Mob extends AbstractIntelligenceAgent { this.setResists(new Resists("Dropper")); } else if(this.isDropper){ this.setResists(new Resists("Dropper")); - } else{ + } else if(this.getMobBaseID() == 14104){ + this.setResists(new Resists("Elite")); + }else{ this.setResists(new Resists()); } this.resists.calculateResists(this, false); diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 54b92de3..a4398153 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -5384,7 +5384,8 @@ public class PlayerCharacter extends AbstractCharacter { } - this.region = AbstractWorldObject.GetRegionByWorldObject(this); + //this.region = AbstractWorldObject.GetRegionByWorldObject(this); + this.region = Regions.GetRegionForTeleport(this.loc); setLoc(newLoc);