did tesla instakill via damagemodifier instead

This commit is contained in:
Bob
2010-05-13 18:06:20 +12:00
parent 8aad7f8350
commit 823d7d44a9
7 changed files with 16 additions and 14 deletions

View File

@@ -177,7 +177,7 @@ namespace OpenRA
/* apply the damage modifiers, if we have any. */
var modifier = (float)traits.WithInterface<IDamageModifier>()
.Select(t => t.GetDamageModifier()).Product();
.Select(t => t.GetDamageModifier(warhead)).Product();
damage = (int)(damage * modifier);