BT1_002.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 BT1_002 : CEntity_Effect
  9. {
  10. public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
  11. {
  12. List<ICardEffect> cardEffects = new List<ICardEffect>();
  13. #region Your Turn
  14. if (timing == EffectTiming.None)
  15. {
  16. bool Condition()
  17. {
  18. if (CardEffectCommons.IsExistOnBattleArea(card))
  19. {
  20. if (CardEffectCommons.IsOwnerTurn(card))
  21. {
  22. if (card.PermanentOfThisCard().HasPierce)
  23. {
  24. return true;
  25. }
  26. }
  27. }
  28. return false;
  29. }
  30. cardEffects.Add(CardEffectFactory.ChangeSelfDPStaticEffect(changeValue: 2000, isInheritedEffect: true, card: card, condition: Condition));
  31. }
  32. #endregion
  33. return cardEffects;
  34. }
  35. }