BT19_005.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. namespace DCGO.CardEffects.BT19
  4. {
  5. public class BT19_005 : CEntity_Effect
  6. {
  7. public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
  8. {
  9. List<ICardEffect> cardEffects = new List<ICardEffect>();
  10. #region Opponent's Turn ESS
  11. if (timing == EffectTiming.None)
  12. {
  13. bool Condition()
  14. {
  15. if (CardEffectCommons.IsExistOnBattleArea(card))
  16. {
  17. if (CardEffectCommons.IsOpponentTurn(card))
  18. {
  19. if (card.Owner.Enemy.GetBattleAreaDigimons().Count >= 1)
  20. {
  21. return true;
  22. }
  23. }
  24. }
  25. return false;
  26. }
  27. cardEffects.Add(CardEffectFactory.RebootSelfStaticEffect(isInheritedEffect: true, card: card, condition: Condition));
  28. }
  29. #endregion
  30. return cardEffects;
  31. }
  32. }
  33. }