瀏覽代碼

Update EX12_035.cs

x89rt2 1 月之前
父節點
當前提交
07690fddef
共有 1 個文件被更改,包括 10 次插入8 次删除
  1. 10 8
      Assets/Scripts/CardEffect/EX12/Blue/EX12_035.cs

+ 10 - 8
Assets/Scripts/CardEffect/EX12/Blue/EX12_035.cs

@@ -188,14 +188,14 @@ namespace DCGO.CardEffects.EX12
 
                 bool CanUseCondition(Hashtable hashtable)
                 {
-                    return CardEffectCommons.IsExistOnBattleArea(card)
+                    return CardEffectCommons.IsExistOnBattleAreaTrigger(card, activateClass)
                         && (CardEffectCommons.CanTriggerOnPermanentPlay(hashtable, IsDigimonCondition)
                             || CardEffectCommons.CanTriggerWhenPermanentDigivolving(hashtable, IsDigimonCondition));
                 }
 
                 bool IsDigimonCondition(Permanent permanent) => CardEffectCommons.IsPermanentExistsOnBattleAreaDigimon(permanent);
 
-                bool CanActivateCondition(Hashtable hashtable) => CardEffectCommons.IsExistOnBattleArea(card);
+                bool CanActivateCondition(Hashtable hashtable) => CardEffectCommons.IsExistOnBattleAreaActivate(card, activateClass);
 
                 bool CanSelectPermanentCondition(Permanent permanent) => CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card);
 
@@ -227,25 +227,27 @@ namespace DCGO.CardEffects.EX12
                             if (permanent != null)
                             {
                                 #region Can't Suspend
+                                Permanent selectedPermanent = permanent;
+
                                 CanNotSuspendClass canNotSuspendClass = new CanNotSuspendClass();
                                 canNotSuspendClass.SetUpICardEffect("Can't Suspend", CanUseCondition1, card);
                                 canNotSuspendClass.SetUpCanNotSuspendClass(PermanentCondition: PermanentCondition);
-                                permanent.UntilOwnerTurnEndEffects.Add((_timing) => canNotSuspendClass);
+                                selectedPermanent.UntilOwnerTurnEndEffects.Add((_timing) => canNotSuspendClass);
 
-                                if (!permanent.TopCard.CanNotBeAffected(activateClass))
+                                if (!selectedPermanent.TopCard.CanNotBeAffected(activateClass))
                                 {
-                                    yield return ContinuousController.instance.StartCoroutine(GManager.instance.GetComponent<Effects>().CreateDebuffEffect(permanent));
+                                    yield return ContinuousController.instance.StartCoroutine(GManager.instance.GetComponent<Effects>().CreateDebuffEffect(selectedPermanent));
                                 }
 
                                 bool CanUseCondition1(Hashtable hashtable)
                                 {
-                                    return permanent.TopCard != null
-                                        && !permanent.TopCard.CanNotBeAffected(activateClass);
+                                    return selectedPermanent.TopCard != null
+                                        && !selectedPermanent.TopCard.CanNotBeAffected(activateClass);
                                 }
 
                                 bool PermanentCondition(Permanent permanent)
                                 {
-                                    return true;
+                                    return permanent == selectedPermanent;
                                 }
                                 #endregion
                             }