v0.7.4a: Fixed elixir of aquatic rejuvenation healing above max HP

This commit is contained in:
Evan Debenham 2019-07-27 14:48:51 -04:00
parent b9be1a6a05
commit 4ec872971f

View File

@ -72,6 +72,7 @@ public class ElixirOfAquaticRejuvenation extends Elixir {
if (Dungeon.level.water[target.pos] && target.HP < target.HT){
float healAmt = GameMath.gate( 1, target.HT/50f, left );
healAmt = Math.min(healAmt, target.HT - target.HP);
if (Random.Float() < (healAmt % 1)){
healAmt = (float)Math.ceil(healAmt);
} else {