BT16_050.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. using System.Collections.Generic;
  2. namespace DCGO.CardEffects.BT16
  3. {
  4. public class BT16_050 : CEntity_Effect
  5. {
  6. public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
  7. {
  8. List<ICardEffect> cardEffects = new List<ICardEffect>();
  9. #region Shared Effect
  10. string EffectDiscription()
  11. {
  12. return "[All Turns] All of your other Digimon with the [D-Brigade] or [DigiPolice] trait get +1000 DP.";
  13. }
  14. bool Condition()
  15. {
  16. if (CardEffectCommons.IsExistOnBattleArea(card))
  17. {
  18. return true;
  19. }
  20. return false;
  21. }
  22. bool PermanentCondition(Permanent permanent)
  23. {
  24. if (CardEffectCommons.IsPermanentExistsOnOwnerBattleArea(permanent, card))
  25. {
  26. if (permanent != card.PermanentOfThisCard())
  27. {
  28. if (permanent.TopCard.CardTraits.Contains("D-Brigade") || permanent.TopCard.CardTraits.Contains("DigiPolice"))
  29. {
  30. return true;
  31. }
  32. }
  33. }
  34. return false;
  35. }
  36. #endregion
  37. #region All Turns
  38. if (timing == EffectTiming.None)
  39. {
  40. cardEffects.Add(CardEffectFactory.ChangeDPStaticEffect(
  41. permanentCondition: PermanentCondition,
  42. changeValue: 1000,
  43. isInheritedEffect: false,
  44. card: card,
  45. condition: Condition,
  46. effectName: EffectDiscription));
  47. }
  48. #endregion
  49. #region Inherited Effect
  50. if (timing == EffectTiming.None)
  51. {
  52. cardEffects.Add(CardEffectFactory.ChangeDPStaticEffect(
  53. permanentCondition: PermanentCondition,
  54. changeValue: 1000,
  55. isInheritedEffect: true,
  56. card: card,
  57. condition: Condition,
  58. effectName: EffectDiscription));
  59. }
  60. #endregion
  61. return cardEffects;
  62. }
  63. }
  64. }