EX2_052.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System.Collections.Generic;
  2. namespace DCGO.CardEffects.EX2
  3. {
  4. public class EX2_052 : CEntity_Effect
  5. {
  6. public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
  7. {
  8. List<ICardEffect> cardEffects = new List<ICardEffect>();
  9. if (timing == EffectTiming.None)
  10. {
  11. bool Condition()
  12. {
  13. if (CardEffectCommons.IsExistOnBattleArea(card))
  14. {
  15. if (CardEffectCommons.IsOwnerTurn(card))
  16. {
  17. if (CardEffectCommons.HasMatchConditionOwnersPermanent(card, (permanent) => permanent.TopCard.CardNames.Contains("Mother D-Reaper")))
  18. {
  19. return true;
  20. }
  21. if (CardEffectCommons.HasMatchConditionOwnersPermanent(card, (permanent) => permanent.TopCard.CardNames.Contains("MotherD-Reaper")))
  22. {
  23. return true;
  24. }
  25. }
  26. }
  27. return false;
  28. }
  29. cardEffects.Add(CardEffectFactory.RushSelfStaticEffect(isInheritedEffect: false, card: card, condition: Condition));
  30. }
  31. return cardEffects;
  32. }
  33. }
  34. }