From a202a0544ea05e539a6bcfd0781bd4390b5f7724 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 11 May 2024 18:44:16 -0500 Subject: [PATCH] mob resist issue --- src/engine/objects/AbstractCharacter.java | 2 +- src/engine/objects/Resists.java | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/AbstractCharacter.java b/src/engine/objects/AbstractCharacter.java index 527f81aa..94ca987e 100644 --- a/src/engine/objects/AbstractCharacter.java +++ b/src/engine/objects/AbstractCharacter.java @@ -684,7 +684,7 @@ public abstract class AbstractCharacter extends AbstractWorldObject { return new Resists("Dropper"); } if(this.getObjectType().equals(GameObjectType.Mob) && ((Mob)this).behaviourType.equals(MobBehaviourType.HamletGuard)) - return new Resists("HamletGuard"); + return new Resists("HamletGuard"); return this.resists; } diff --git a/src/engine/objects/Resists.java b/src/engine/objects/Resists.java index d3489462..ac5e09b3 100644 --- a/src/engine/objects/Resists.java +++ b/src/engine/objects/Resists.java @@ -71,7 +71,19 @@ public class Resists { this.resists.put(DamageType.Fire, 75f); this.resists.put(DamageType.Cold, 75f); this.resists.put(DamageType.Healing, 75f); - this.immuneTo.put(DamageType.Siege, true); + this.immuneTo.put(DamageType.Slash, false); + this.immuneTo.put(DamageType.Crush, false); + this.immuneTo.put(DamageType.Pierce, false); + this.immuneTo.put(DamageType.Magic, false); + this.immuneTo.put(DamageType.Bleed, false); + this.immuneTo.put(DamageType.Poison, false); + this.immuneTo.put(DamageType.Mental, false); + this.immuneTo.put(DamageType.Holy, false); + this.immuneTo.put(DamageType.Unholy, false); + this.immuneTo.put(DamageType.Lightning, false); + this.immuneTo.put(DamageType.Fire, false); + this.immuneTo.put(DamageType.Cold, false); + this.immuneTo.put(DamageType.Siege, false); } public Resists(Resists r) {