From 87216373625e1eaec2669ef649a614d509394414 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 10 Mar 2016 01:04:17 -0500 Subject: [PATCH] v0.3.5: wand of blast wave now knocks back all bosses less --- .../shatteredpixeldungeon/items/wands/WandOfBlastWave.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfBlastWave.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfBlastWave.java index d5dde1400..089f3cb55 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfBlastWave.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfBlastWave.java @@ -26,9 +26,6 @@ import com.shatteredpixel.shatteredpixeldungeon.DungeonTilemap; 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; @@ -104,8 +101,7 @@ public class WandOfBlastWave extends Wand { private void throwChar(final Char ch, final Ballistica trajectory, int power){ int dist = Math.min(trajectory.dist, power); - //FIXME: sloppy - if ((ch instanceof King) || (ch instanceof Golem) || (ch instanceof Yog.RottingFist)) + if (ch.properties().contains(Char.Property.BOSS)) dist /= 2; if (dist == 0 || ch.properties().contains(Char.Property.IMMOVABLE)) return;