OnUnsuspend.cs 745 B

12345678910111213141516171819202122
  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 permanent unsuspends" effect
  9. public static bool CanTriggerWhenSelfPermanentUnsuspends(Hashtable hashtable, CardSource card)
  10. {
  11. return CanTriggerWhenPermanentUnsuspends(hashtable, (permanent) => permanent.cardSources.Contains(card));
  12. }
  13. #endregion
  14. #region Can trigger "when permanent unsuspends" effect
  15. public static bool CanTriggerWhenPermanentUnsuspends(Hashtable hashtable, Func<Permanent, bool> permanentCondition)
  16. {
  17. return CanTriggerWhenPermanentSuspends(hashtable, permanentCondition);
  18. }
  19. #endregion
  20. }