v2.2.0: fixed hunger increases only processing damage on hunger tick
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user