Fixed armor-damage
This commit is contained in:
parent
809672d61a
commit
90a7355064
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user