BT11_078.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System.Collections.Generic;
  2. namespace DCGO.CardEffects.BT11
  3. {
  4. public class BT11_078 : 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.OnDestroyedAnyone)
  10. {
  11. cardEffects.Add(CardEffectFactory.RetaliationSelfEffect(isInheritedEffect: false, card: card, condition: null));
  12. }
  13. if (timing == EffectTiming.None)
  14. {
  15. bool Condition()
  16. {
  17. if (CardEffectCommons.IsExistOnBattleArea(card))
  18. {
  19. return true;
  20. }
  21. return false;
  22. }
  23. bool PermanentCondition(Permanent permanent)
  24. {
  25. if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent, card))
  26. {
  27. if (permanent.HasRetaliation)
  28. {
  29. return true;
  30. }
  31. }
  32. return false;
  33. }
  34. cardEffects.Add(CardEffectFactory.ChangeDPStaticEffect(
  35. permanentCondition: PermanentCondition,
  36. changeValue: 2000,
  37. isInheritedEffect: false,
  38. card: card,
  39. condition: Condition,
  40. effectName: () => "Your Digimon with Retaliation gain DP +2000"));
  41. }
  42. return cardEffects;
  43. }
  44. }
  45. }