v0.2.3: fixed a bug with frost and fire elementals

This commit is contained in:
Evan Debenham 2014-11-24 22:39:58 -05:00
parent 2ab55e2417
commit 23a644403b

View File

@ -83,10 +83,11 @@ 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 );
}
if (isAlive())
super.add( buff );
}
}