mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-27 19:24:44 +02:00
dealNoInvulnerabilityTickDamage actually hurts things now
This commit is contained in:
@ -381,11 +381,10 @@ public final class CombatUtils {
|
||||
return;
|
||||
}
|
||||
|
||||
//target.damage(callFakeDamageEvent(attacker, target, cause, damage));
|
||||
double incDmg = callFakeDamageEvent(attacker, target, DamageCause.CUSTOM, damage);
|
||||
|
||||
if(incDmg > 0)
|
||||
target.setHealth(incDmg);
|
||||
double newHealth = Math.max(0, target.getHealth() - incDmg);
|
||||
target.setHealth(newHealth);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user