Add AttackSource enum.

This commit is contained in:
Paul Chote
2020-01-10 20:46:03 +00:00
committed by teinarss
parent 6f52365f9d
commit 51870a471a
15 changed files with 20 additions and 18 deletions

View File

@@ -321,7 +321,7 @@ namespace OpenRA.Mods.Common.Traits
void Attack(Actor self, Target target, bool allowMove)
{
foreach (var ab in ActiveAttackBases)
ab.AttackTarget(target, false, allowMove);
ab.AttackTarget(target, AttackSource.AutoTarget, false, allowMove);
}
public bool HasValidTargetPriority(Actor self, Player owner, BitSet<TargetableType> targetTypes)