Fixed armor-damage

This commit is contained in:
Fierelier 2018-04-18 16:08:43 +02:00
parent 809672d61a
commit 90a7355064

View File

@ -47,7 +47,7 @@ namespace pdHealth
pl.Health = pl.Health + damageTaken; pl.Health = pl.Health + damageTaken;
pl.Armor = pl.Armor - damageTaken; pl.Armor = pl.Armor - damageTaken;
} else { } else {
pl.Health = pl.Health + (damageTaken - pl.Armor); pl.Health = pl.Health + pl.Armor;
pl.Armor = 0; pl.Armor = 0;
} }
} }