BT10_071.cs 914 B

1234567891011121314151617181920212223242526272829303132333435
  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. namespace DCGO.CardEffects.BT10
  9. {
  10. public class BT10_071 : CEntity_Effect
  11. {
  12. public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
  13. {
  14. List<ICardEffect> cardEffects = new List<ICardEffect>();
  15. if (timing == EffectTiming.OnDestroyedAnyone)
  16. {
  17. bool Condition()
  18. {
  19. if (card.Owner.TrashCards.Count >= 10)
  20. {
  21. return true;
  22. }
  23. return false;
  24. }
  25. cardEffects.Add(CardEffectFactory.RetaliationSelfEffect(isInheritedEffect: true, card: card, condition: Condition));
  26. }
  27. return cardEffects;
  28. }
  29. }
  30. }