From 4715b42b77ce45ee2631754ce403ae5be63afcbe Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 18 Nov 2015 15:51:35 -0500 Subject: [PATCH] v0.3.2c: Fixed a bugged interation between wand of blast wave and the tengu boss --- .../shatteredpixeldungeon/items/wands/WandOfBlastWave.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfBlastWave.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfBlastWave.java index 4c49d12d3..8c5ed64ee 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfBlastWave.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfBlastWave.java @@ -123,9 +123,15 @@ public class WandOfBlastWave extends Wand { if (newPos == ch.pos) return; final int finalDist = dist; + final int initialpos = ch.pos; Actor.addDelayed(new Pushing(ch, ch.pos, newPos, new Callback() { public void call() { + if (initialpos != ch.pos) { + //something cased movement before pushing resolved, cancel to be safe. + ch.sprite.place(ch.pos); + return; + } ch.pos = newPos; if (ch.pos == trajectory.collisionPos) { ch.damage(Random.NormalIntRange((finalDist + 1) / 2, finalDist), this);