Changes Weapon.Impact() to use Target (from WPos).
This commit is contained in:
@@ -46,7 +46,7 @@ namespace OpenRA.Mods.Cnc.Effects
|
||||
if (!impacted && weaponDelay-- <= 0)
|
||||
{
|
||||
var weapon = world.Map.Rules.Weapons[this.weapon.ToLowerInvariant()];
|
||||
weapon.Impact(target.CenterPosition, firedBy.PlayerActor, Enumerable.Empty<int>());
|
||||
weapon.Impact(target, firedBy.PlayerActor, Enumerable.Empty<int>());
|
||||
impacted = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user