This commit is contained in:
Anuken
2020-12-28 14:51:50 -05:00
parent db40f154c5
commit 98e6303765
2 changed files with 6 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ abstract class ShieldComp implements Healthc, Posc{
float shieldDamage = Math.min(Math.max(shield, 0), amount);
shield -= shieldDamage;
hitTime = 1f;
amount -= shieldDamage;
if(amount > 0){