OnTrashBySelfDigiBurst.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using System;
  4. using System.Linq;
  5. using UnityEngine;
  6. public partial class CardEffectCommons
  7. {
  8. #region Can trigger "When this digivolution card is trashed due to activating this Digimon's <Digi-Burst>" effect
  9. public static bool CanTriggerOnTrashBySelfDigiBurst(Hashtable hashtable, CardSource card)
  10. {
  11. bool CardEffectCondition(ICardEffect cardEffect)
  12. {
  13. if (cardEffect != null)
  14. {
  15. if (!string.IsNullOrEmpty(cardEffect.EffectDiscription))
  16. {
  17. if (cardEffect.EffectDiscription.Contains("Digi-Burst"))
  18. {
  19. if (cardEffect.EffectSourceCard != null)
  20. {
  21. if (IsExistOnBattleArea(cardEffect.EffectSourceCard))
  22. {
  23. if (cardEffect.EffectSourceCard.PermanentOfThisCard().cardSources.Contains(card))
  24. {
  25. return true;
  26. }
  27. }
  28. }
  29. }
  30. }
  31. }
  32. return false;
  33. }
  34. return CanTriggerOnTrashSelfDigivolutionCard(hashtable, CardEffectCondition, card);
  35. }
  36. #endregion
  37. }