v0.2.4: corrected a bug with fire elemental
This commit is contained in:
@@ -80,14 +80,14 @@ public class Elemental extends Mob {
|
||||
HP++;
|
||||
sprite.emitter().burst( Speck.factory( Speck.HEALING ), 1 );
|
||||
}
|
||||
} else {
|
||||
if (buff instanceof Frost) {
|
||||
} else if (buff instanceof Frost) {
|
||||
if (Level.water[this.pos])
|
||||
damage( Random.NormalIntRange( HT / 2, HT ), buff );
|
||||
else
|
||||
damage( Random.NormalIntRange( 1, HT * 2 / 3 ), buff );
|
||||
}
|
||||
}
|
||||
} else {
|
||||
super.add( buff );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user