v3.0.0: cursed wand fx can no longer levitate immovable characters

This commit is contained in:
Evan Debenham
2025-01-29 14:23:26 -05:00
parent 6f786fd7a7
commit 062cb3f11e

View File

@@ -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);