public static bool RequiresTarget(this UnitActions action) { UnitActions[] actionsThatRequireTargets = new UnitActions[] { UnitActions.Attack, UnitActions.Heal, UnitActions.StrongAttack }; return(actionsThatRequireTargets.Contains(action)); }