using System.Collections; using System.Collections.Generic; namespace DCGO.CardEffects.LM { public class LM_008 : CEntity_Effect { public override List CardEffects(EffectTiming timing, CardSource card) { List cardEffects = new List(); #region Start of Main Phase if(timing == EffectTiming.OnStartMainPhase) { ActivateClass activateClass = new ActivateClass(); activateClass.SetUpICardEffect("gain +1 memory", CanUseCondition, card); activateClass.SetUpActivateClass(CanActivateCondition, ActivateEffect, -1, false, EffectDiscription()); cardEffects.Add(activateClass); string EffectDiscription() { return "[Start of Your Main Phase] If you have a Tamer, gain 1 memory."; } bool HasTamerCondition(Permanent permanent) { return permanent.IsTamer; } bool CanUseCondition(Hashtable hashtable) { if (CardEffectCommons.HasMatchConditionOwnersPermanent(card, HasTamerCondition)) { if(card.Owner.CanAddMemory(activateClass)) { return true; } } return false; } bool CanActivateCondition(Hashtable hashtable) { if (CardEffectCommons.IsOwnerTurn(card)) { if (CardEffectCommons.IsExistOnBattleArea(card)) { return true; } } return false; } IEnumerator ActivateEffect(Hashtable hashtable) { yield return ContinuousController.instance.StartCoroutine(card.Owner.AddMemory(1, activateClass)); } } #endregion #region Your Turn - Inherited Effect if (timing == EffectTiming.None) { bool Condition() { if (CardEffectCommons.IsExistOnBattleArea(card)) { if (CardEffectCommons.IsOwnerTurn(card)) { if(card.PermanentOfThisCard().TopCard != card) { if (card.PermanentOfThisCard().TopCard.HasText("Angoramon")) { return true; } } } } return false; } cardEffects.Add(CardEffectFactory.ChangeSelfDPStaticEffect(changeValue: 2000, isInheritedEffect: true, card: card, condition: Condition)); } #endregion return cardEffects; } } }