BT2_089.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 BT2_089 : 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.OnStartTurn)
  14. {
  15. cardEffects.Add(CardEffectFactory.SetMemoryTo3TamerEffect(card));
  16. }
  17. if (timing == EffectTiming.None)
  18. {
  19. bool Condition()
  20. {
  21. if (CardEffectCommons.IsExistOnBattleArea(card))
  22. {
  23. if (CardEffectCommons.IsOpponentTurn(card))
  24. {
  25. return true;
  26. }
  27. }
  28. return false;
  29. }
  30. bool PermanentCondition(Permanent permanent)
  31. {
  32. if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent, card))
  33. {
  34. if (permanent.TopCard.CardColors.Contains(CardColor.Black))
  35. {
  36. return true;
  37. }
  38. }
  39. return false;
  40. }
  41. cardEffects.Add(CardEffectFactory.ChangeDPStaticEffect(
  42. permanentCondition: PermanentCondition,
  43. changeValue: 1000,
  44. isInheritedEffect: false,
  45. card: card,
  46. condition: Condition,
  47. effectName: () => "Your black Digimon gain DP +1000"));
  48. }
  49. if (timing == EffectTiming.SecuritySkill)
  50. {
  51. cardEffects.Add(CardEffectFactory.PlaySelfTamerSecurityEffect(card));
  52. }
  53. return cardEffects;
  54. }
  55. }