playerMovementSpeed,playerCrouchSpeed in the player component now also gets AssaultBoosted.

This commit is contained in:
verysecrethero
2016-02-17 16:04:44 +01:00
parent e8aff02c4e
commit 1c9a1a9904
3 changed files with 19 additions and 13 deletions
+2 -2
View File
@@ -30,8 +30,8 @@ bool HealthSystem::OnPlayerDamaged(Events::PlayerDamage& e)
ComponentWrapper cHealth = e.Victim["Health"];
double& health = cHealth["Health"];
if (e.Player.HasComponent("BoostDefender")) {
e.Damage -= (double)e.Player["BoostDefender"]["StrengthOfEffect"];
if (e.Victim.HasComponent("BoostDefender")) {
e.Damage -= (double)e.Victim["BoostDefender"]["StrengthOfEffect"];
}
health -= e.Damage;