BT3_074.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 BT3_074 : 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 Condition()
  16. {
  17. return CardEffectCommons.IsOwnerTurn(card);
  18. }
  19. cardEffects.Add(CardEffectFactory.CanNotBeBlockedStaticSelfEffect(
  20. defenderCondition: null,
  21. isInheritedEffect: false,
  22. card: card,
  23. condition: Condition,
  24. effectName: "Unblockable"));
  25. }
  26. if (timing == EffectTiming.None)
  27. {
  28. bool Condition()
  29. {
  30. if (CardEffectCommons.IsExistOnBattleArea(card))
  31. {
  32. if (CardEffectCommons.IsOpponentTurn(card))
  33. {
  34. return true;
  35. }
  36. }
  37. return false;
  38. }
  39. cardEffects.Add(CardEffectFactory.ChangeSelfDPStaticEffect(
  40. changeValue: 2000,
  41. isInheritedEffect: false,
  42. card: card,
  43. condition: Condition));
  44. }
  45. return cardEffects;
  46. }
  47. }