From 7918c027649757aa89c0f029180ba3fcd497e4ef Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 11 Aug 2024 11:39:20 -0400 Subject: [PATCH] v2.5.0: fixed position swapping working when ally is paralyzed --- .../com/shatteredpixel/shatteredpixeldungeon/actors/Char.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java index 63f2bdc23..7f4750ea7 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java @@ -259,7 +259,8 @@ public abstract class Char extends Actor { } //can't swap places if one char has restricted movement - if (rooted || c.rooted || buff(Vertigo.class) != null || c.buff(Vertigo.class) != null){ + if (paralysed > 0 || c.paralysed > 0 || rooted || c.rooted + || buff(Vertigo.class) != null || c.buff(Vertigo.class) != null){ return true; }