Attack activities use armaments directly through constructor

This commit is contained in:
atlimit8
2015-06-27 13:52:00 -05:00
parent cdd4590ece
commit 527675db8d
4 changed files with 7 additions and 7 deletions

View File

@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Common.Traits
if (a == null)
return null;
return new Activities.Attack(self, newTarget, a.Weapon.MinRange, a.Weapon.Range, allowMove);
return new Activities.Attack(self, newTarget, a, allowMove);
}
}
}