public override void InvokeAction(CardAction cardAction, MingmingBattleLogic source, MingmingBattleLogic target, Card card) { var controller = FindObjectsOfType <PartyController>().First(m => m.HasMingming(target)); //should never be null foreach (var mingming in controller.Mingmings.Where(m => m.IsInPlay)) { cardAction.InvokeAction(source, mingming.Logic, card.CardAlignment); } }
public override void InvokeAction(CardAction cardAction, MingmingBattleLogic source, MingmingBattleLogic target, Card card) { cardAction.InvokeAction(source, target, card.CardAlignment); }