BT18_045.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. namespace DCGO.CardEffects.BT18
  4. {
  5. public class BT18_045 : CEntity_Effect
  6. {
  7. public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
  8. {
  9. List<ICardEffect> cardEffects = new List<ICardEffect>();
  10. #region All Turns
  11. if (timing == EffectTiming.None)
  12. {
  13. string EffectDiscription()
  14. {
  15. return "[All Turns] While this Digimon is suspended, all of your other Digimon get +1000 DP.";
  16. }
  17. bool Condition()
  18. {
  19. if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
  20. {
  21. if (card.PermanentOfThisCard().IsSuspended)
  22. {
  23. return true;
  24. }
  25. }
  26. return false;
  27. }
  28. bool PermanentCondition(Permanent permanent)
  29. {
  30. if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent, card))
  31. {
  32. if (permanent != card.PermanentOfThisCard())
  33. {
  34. return true;
  35. }
  36. }
  37. return false;
  38. }
  39. cardEffects.Add(CardEffectFactory.ChangeDPStaticEffect(
  40. permanentCondition: PermanentCondition,
  41. changeValue: 1000,
  42. isInheritedEffect: false,
  43. card: card,
  44. condition: Condition,
  45. effectName: EffectDiscription));
  46. }
  47. #endregion
  48. return cardEffects;
  49. }
  50. }
  51. }