From 23a644403b634b88a8bd90b6795122285fc01a60 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 24 Nov 2014 22:39:58 -0500 Subject: [PATCH] v0.2.3: fixed a bug with frost and fire elementals --- .../shatteredpixeldungeon/actors/mobs/Elemental.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Elemental.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Elemental.java index a6a853b2a..bf664db36 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Elemental.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Elemental.java @@ -83,11 +83,12 @@ public class Elemental extends Mob { } else { if (buff instanceof Frost) { if (Level.water[this.pos]) - damage(Random.NormalIntRange( HT / 2, HT ), buff); + damage( Random.NormalIntRange( HT / 2, HT ), buff ); else damage( Random.NormalIntRange( 1, HT * 2 / 3 ), buff ); } - super.add( buff ); + if (isAlive()) + super.add( buff ); } }