BT8_071.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 BT8_071 : 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. CannotReduceCostClass cannotReduceCostClass = new CannotReduceCostClass();
  16. cannotReduceCostClass.SetUpICardEffect("Players can't reduce play costs", CanUseCondition, card);
  17. cannotReduceCostClass.SetUpCannotReduceCostClass(
  18. playerCondition: PlayerCondition,
  19. targetPermanentsCondition: TargetPermanentsCondition,
  20. cardCondition: CardCondition);
  21. cardEffects.Add(cannotReduceCostClass);
  22. bool CanUseCondition(Hashtable hashtable)
  23. {
  24. return CardEffectCommons.IsExistOnBattleArea(card);
  25. }
  26. bool PlayerCondition(Player player)
  27. {
  28. return true;
  29. }
  30. bool TargetPermanentsCondition(List<Permanent> targetPermanents)
  31. {
  32. if (targetPermanents == null)
  33. {
  34. return true;
  35. }
  36. else
  37. {
  38. if (targetPermanents.Count((permanent) => permanent != null) == 0)
  39. {
  40. return true;
  41. }
  42. }
  43. return false;
  44. }
  45. bool CardCondition(CardSource cardSource)
  46. {
  47. return cardSource.HasPlayCost;
  48. }
  49. }
  50. return cardEffects;
  51. }
  52. }