Browse Source

guards hotfix

lakebane
FatBoy-DOTC 3 weeks ago
parent
commit
d67bf0bc64
  1. 1
      src/engine/mobileAI/MobAI.java
  2. 4
      src/engine/objects/Mob.java
  3. 3
      src/engine/objects/PlayerCharacter.java

1
src/engine/mobileAI/MobAI.java

@ -742,6 +742,7 @@ public class MobAI {
} }
} }
mob.refresh();
switch (mob.BehaviourType) { switch (mob.BehaviourType) {
case GuardCaptain: case GuardCaptain:

4
src/engine/objects/Mob.java

@ -1539,7 +1539,9 @@ public class Mob extends AbstractIntelligenceAgent {
this.setResists(new Resists("Dropper")); this.setResists(new Resists("Dropper"));
} else if(this.isDropper){ } else if(this.isDropper){
this.setResists(new Resists("Dropper")); this.setResists(new Resists("Dropper"));
} else{ } else if(this.getMobBaseID() == 14104){
this.setResists(new Resists("Elite"));
}else{
this.setResists(new Resists()); this.setResists(new Resists());
} }
this.resists.calculateResists(this, false); this.resists.calculateResists(this, false);

3
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); setLoc(newLoc);

Loading…
Cancel
Save