v2.2.0: fixed hunger increases only processing damage on hunger tick

This commit is contained in:
Evan Debenham
2023-09-25 11:04:48 -04:00
parent 5d16bf99b0
commit 5ba584da58

View File

@@ -146,6 +146,10 @@ public class Hunger extends Buff implements Hero.Doom {
float excess = level - STARVING;
level = STARVING;
partialDamage += excess * (target.HT/1000f);
if (partialDamage > 1f){
target.damage( (int)partialDamage, this );
partialDamage -= (int)partialDamage;
}
}
if (oldLevel < HUNGRY && level >= HUNGRY){