v0.2.3: fixed a bug with frost and fire elementals
This commit is contained in:
parent
2ab55e2417
commit
23a644403b
|
@ -83,10 +83,11 @@ public class Elemental extends Mob {
|
||||||
} else {
|
} else {
|
||||||
if (buff instanceof Frost) {
|
if (buff instanceof Frost) {
|
||||||
if (Level.water[this.pos])
|
if (Level.water[this.pos])
|
||||||
damage(Random.NormalIntRange( HT / 2, HT ), buff);
|
damage( Random.NormalIntRange( HT / 2, HT ), buff );
|
||||||
else
|
else
|
||||||
damage( Random.NormalIntRange( 1, HT * 2 / 3 ), buff );
|
damage( Random.NormalIntRange( 1, HT * 2 / 3 ), buff );
|
||||||
}
|
}
|
||||||
|
if (isAlive())
|
||||||
super.add( buff );
|
super.add( buff );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user