v0.9.3: fixed aqua rejuv working while hero is levitating
This commit is contained in:
parent
6b6f69ab17
commit
1d085d6d7f
|
@ -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)){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user