public void Destroy(AbilitiesData _data) { if (_data.GetConditionData().Targets == TARGETS.ALL) { List <Card> cardList; cardList = GameManager.instance.GetConditionalList(_data.GetConditionData()); for (int i = 0; i < cardList.Count; ++i) { cardList[i].Defeated(); } } }
public void ReturnToHand(AbilitiesData _data) { List <Card> cardList; if (_data.GetConditionData().Targets == TARGETS.ALL) { cardList = GameManager.instance.GetConditionalList(_data.GetConditionData()); for (int i = 0; i < cardList.Count; ++i) { cardList[i].ToHand(); } } else if (_data.GetConditionData().Targets == TARGETS.SELF) { _data.mCaster.ToHand(); } }