v0.7.4a: Fixed elixir of aquatic rejuvenation healing above max HP
This commit is contained in:
parent
b9be1a6a05
commit
4ec872971f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user