Просмотр исходного кода

Merge pull request #1575 from DCGO2/hooperk-leaving

Trigger WhenLeavesBattleArea for place permanent to digivolution cards
x89rt2 1 месяц назад
Родитель
Сommit
d20f0ca93c
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      Assets/Scripts/Script/CardController.cs

+ 13 - 0
Assets/Scripts/Script/CardController.cs

@@ -3086,6 +3086,19 @@ public class IPlacePermanentToDigivolutionCards
                 {
                     if (DigivolutionPermanent.TopCard != null && getDigivolutionPermanent.TopCard != null && !getDigivolutionPermanent.IsToken && DigivolutionPermanent.willBeRemoveField)
                     {
+                        #region "When permanents leave the battle area" effect
+
+                        yield return ContinuousController.instance.StartCoroutine(GManager.instance.autoProcessing.StackSkillInfos(
+                            CardEffectCommons.OnDeletionHashtable(
+                                new List<Permanent> { DigivolutionPermanent },
+                                _cardEffect,
+                                null,
+                                false
+                            ),
+                            EffectTiming.OnLeaveFieldAnyone));
+
+                        #endregion
+
                         yield return ContinuousController.instance.StartCoroutine(DigivolutionPermanent.DiscardEvoRoots());
 
                         CardSource cardSource = DigivolutionPermanent.TopCard;