Changes Weapon.Impact() to use Target (from WPos).

This commit is contained in:
UberWaffe
2014-08-19 21:32:05 +02:00
parent c25c3441fb
commit 76ccb0cf00
15 changed files with 28 additions and 17 deletions

View File

@@ -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;
}
}

View File

@@ -43,7 +43,8 @@ namespace OpenRA.Mods.Cnc
if (!info.Resources.Contains(r.Info.Name)) return;
var weapon = self.World.Map.Rules.Weapons[info.Weapon.ToLowerInvariant()];
weapon.Impact(self.CenterPosition, self.World.WorldActor, Enumerable.Empty<int>());
weapon.Impact(Target.FromActor(self), self.World.WorldActor, Enumerable.Empty<int>());
poisonTicks = weapon.ReloadDelay;
}
}