Changes Weapon.Impact() to use Target (from WPos).
This commit is contained in:
@@ -55,7 +55,8 @@ namespace OpenRA.Mods.RA.Air
|
||||
if (info.Explosion != null)
|
||||
{
|
||||
var weapon = self.World.Map.Rules.Weapons[info.Explosion.ToLowerInvariant()];
|
||||
weapon.Impact(self.CenterPosition, self, Enumerable.Empty<int>());
|
||||
// Use .FromPos since this actor is killed. Cannot use Target.FromActor
|
||||
weapon.Impact(Target.FromPos(self.CenterPosition), self, Enumerable.Empty<int>());
|
||||
}
|
||||
|
||||
self.Destroy();
|
||||
|
||||
Reference in New Issue
Block a user