From 062cb3f11ed62c3c2f371103fcc75b5b13796cc5 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 29 Jan 2025 14:23:26 -0500 Subject: [PATCH] v3.0.0: cursed wand fx can no longer levitate immovable characters --- .../shatteredpixeldungeon/items/wands/CursedWand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java index cd4395811..aee46b7aa 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java @@ -626,7 +626,7 @@ public class CursedWand { @Override public boolean effect(Item origin, Char user, Ballistica bolt, boolean positiveOnly) { Char ch = Actor.findChar(bolt.collisionPos); - if ((!positiveOnly || (ch instanceof Piranha)) && ch != null && !ch.flying) { + if ((!positiveOnly || (ch instanceof Piranha)) && ch != null && !ch.flying && !Char.hasProp(ch, Char.Property.IMMOVABLE)) { Buff.affect(ch, Levitation.class, Levitation.DURATION); } else { Buff.affect(user, Levitation.class, Levitation.DURATION);