v3.0.0: cursed wand fx can no longer levitate immovable characters
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user