Olympiad game addDamage when not invulnerable.

This commit is contained in:
MobiusDevelopment
2020-11-13 22:48:46 +00:00
parent f6302f520d
commit c61ea3f137
21 changed files with 297 additions and 114 deletions

View File

@@ -918,13 +918,20 @@ class OlympiadGame
{
return;
}
if (player == _playerOne)
{
_damageP1 += damage;
if (!_playerTwo.isInvul())
{
_damageP1 += damage;
}
}
else if (player == _playerTwo)
{
_damageP2 += damage;
if (!_playerOne.isInvul())
{
_damageP2 += damage;
}
}
}