Browse Source

mob resist issue

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
a33d650738
  1. 2
      src/engine/objects/AbstractCharacter.java
  2. 2
      src/engine/objects/Resists.java

2
src/engine/objects/AbstractCharacter.java

@ -683,6 +683,8 @@ public abstract class AbstractCharacter extends AbstractWorldObject { @@ -683,6 +683,8 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
if(Mob.disciplineDroppers.contains(this)){
return new Resists("Dropper");
}
if(this.getObjectType().equals(GameObjectType.Mob) && ((Mob)this).behaviourType.equals(MobBehaviourType.HamletGuard))
return new Resists("HamletGuard");
return this.resists;
}

2
src/engine/objects/Resists.java

@ -48,6 +48,8 @@ public class Resists { @@ -48,6 +48,8 @@ public class Resists {
break;
case "Dropper":
setDropperResists();
case "HamletGuard":
setDropperResists();
default:
setGenericResists();
break;

Loading…
Cancel
Save