BT5_038.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 BT5_038 : 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.Enemy;
  18. }
  19. bool Condition()
  20. {
  21. if (CardEffectCommons.IsExistOnBattleArea(card))
  22. {
  23. if (CardEffectCommons.IsOwnerTurn(card))
  24. {
  25. return true;
  26. }
  27. }
  28. return false;
  29. }
  30. cardEffects.Add(CardEffectFactory.ChangeSecurityDigimonCardDPStaticEffect(
  31. cardCondition: CardCondition,
  32. changeValue: -1000,
  33. isInheritedEffect: true,
  34. card: card,
  35. condition: Condition,
  36. effectName: "Opponent's Security Digimon gains DP -1000"));
  37. }
  38. return cardEffects;
  39. }
  40. }