IsDigivolvedByTheEffect.cs 588 B

123456789101112131415161718192021222324
  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. public static bool IsDigivolvedByTheEffect(Permanent permanent, CardSource cardSource, ICardEffect cardEffect)
  9. {
  10. if (IsPermanentExistsOnBattleArea(permanent))
  11. {
  12. if (permanent.TopCard == cardSource)
  13. {
  14. if (permanent.DigivolvingEffect == cardEffect)
  15. {
  16. return true;
  17. }
  18. }
  19. }
  20. return false;
  21. }
  22. }