Small cleanup. Clarified a few comments

This commit is contained in:
verysecrethero
2016-02-18 13:40:17 +01:00
parent 7f489b3569
commit 8c92b7ceb6
3 changed files with 8 additions and 11 deletions
+1
View File
@@ -30,6 +30,7 @@ bool HealthSystem::OnPlayerDamaged(Events::PlayerDamage& e)
ComponentWrapper cHealth = e.Victim["Health"];
double& health = cHealth["Health"];
//if player has the boost from a defender, subtract the damage taken by StrengthOfEffect amount
auto playerBoostDefenderEntity = e.Victim.FirstChildByName("BoostDefender");
if (playerBoostDefenderEntity.Valid()) {
e.Damage -= (double)playerBoostDefenderEntity["BoostDefender"]["StrengthOfEffect"];