From f16865aadedd51545396096f40cf39c451d2b0a5 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 25 May 2015 15:22:32 -0400 Subject: [PATCH] v0.3.0: made certain mobs resistant/immune to the wand of blast wave's pushing --- .../items/wands/WandOfBlastWave.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfBlastWave.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfBlastWave.java index f5cf7e128..0771d542f 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfBlastWave.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfBlastWave.java @@ -7,6 +7,9 @@ import com.shatteredpixel.shatteredpixeldungeon.ResultDescriptions; import com.shatteredpixel.shatteredpixeldungeon.actors.Actor; import com.shatteredpixel.shatteredpixeldungeon.actors.Char; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Paralysis; +import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Golem; +import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.King; +import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Yog; import com.shatteredpixel.shatteredpixeldungeon.effects.Effects; import com.shatteredpixel.shatteredpixeldungeon.effects.MagicMissile; import com.shatteredpixel.shatteredpixeldungeon.effects.Pushing; @@ -83,7 +86,11 @@ public class WandOfBlastWave extends Wand { private void throwChar(Char ch, Ballistica trajectory, int power){ int dist = Math.min(trajectory.dist, power); - if (dist == 0) return; + //FIXME: sloppy + if ((ch instanceof King) || (ch instanceof Golem) || (ch instanceof Yog.RottingFist)) + dist /= 2; + + if (dist == 0 || ch instanceof Yog) return; int newPos = trajectory.path.get(dist);