BT4_045.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using System.Linq;
  5. using Photon;
  6. using System;
  7. using Photon.Pun;
  8. public class BT4_045 : CEntity_Effect
  9. {
  10. public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
  11. {
  12. List<ICardEffect> cardEffects = new List<ICardEffect>();
  13. if (timing == EffectTiming.None)
  14. {
  15. bool CardCondition(CardSource cardSource)
  16. {
  17. return cardSource.Owner == card.Owner;
  18. }
  19. bool Condition()
  20. {
  21. if (CardEffectCommons.IsExistOnBattleArea(card))
  22. {
  23. if (CardEffectCommons.IsOpponentTurn(card))
  24. {
  25. if (card.Owner.SecurityCards.Count <= 3)
  26. {
  27. return true;
  28. }
  29. }
  30. }
  31. return false;
  32. }
  33. cardEffects.Add(CardEffectFactory.ChangeSecurityDigimonCardDPStaticEffect(
  34. cardCondition: CardCondition,
  35. changeValue: 4000,
  36. isInheritedEffect: false,
  37. card: card,
  38. condition: Condition,
  39. effectName: "Your Security Digimon gains DP +4000"));
  40. }
  41. return cardEffects;
  42. }
  43. }