v0.9.3: fixed aqua rejuv working while hero is levitating

This commit is contained in:
Evan Debenham 2021-05-26 17:40:56 -04:00
parent 6b6f69ab17
commit 1d085d6d7f

View File

@ -75,7 +75,7 @@ public class ElixirOfAquaticRejuvenation extends Elixir {
@Override @Override
public boolean act() { public boolean act() {
if (Dungeon.level.water[target.pos] && target.HP < target.HT){ if (!target.flying && Dungeon.level.water[target.pos] && target.HP < target.HT){
float healAmt = GameMath.gate( 1, target.HT/50f, left ); float healAmt = GameMath.gate( 1, target.HT/50f, left );
healAmt = Math.min(healAmt, target.HT - target.HP); healAmt = Math.min(healAmt, target.HT - target.HP);
if (Random.Float() < (healAmt % 1)){ if (Random.Float() < (healAmt % 1)){