From 52cc341c6923041eb9b82b0bf75106553822aff1 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 7 Jul 2022 17:01:45 -0400 Subject: [PATCH] v1.3.1: wards/sentries are now immune to sleep, vertigo & fear --- .../items/wands/WandOfWarding.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfWarding.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfWarding.java index 89985987b..54dd18d8c 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfWarding.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfWarding.java @@ -29,6 +29,10 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.Char; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.AllyBuff; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Corruption; +import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Dread; +import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Sleep; +import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Terror; +import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Vertigo; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.NPC; import com.shatteredpixel.shatteredpixeldungeon.effects.MagicMissile; @@ -424,6 +428,10 @@ public class WandOfWarding extends Wand { } { + immunities.add( Sleep.class ); + immunities.add( Terror.class ); + immunities.add( Dread.class ); + immunities.add( Vertigo.class ); immunities.add( AllyBuff.class ); } @@ -447,9 +455,5 @@ public class WandOfWarding extends Wand { wandLevel = bundle.getInt(WAND_LEVEL); totalZaps = bundle.getInt(TOTAL_ZAPS); } - - { - properties.add(Property.IMMOVABLE); - } } }