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

Merge pull request #1268 from DCGO2/x89rt2-patch-3

Update BT25_015.cs
hooperk 3 месяцев назад
Родитель
Сommit
862b0dacac
1 измененных файлов с 7 добавлено и 7 удалено
  1. 7 7
      Assets/Scripts/CardEffect/BT25/Red/BT25_015.cs

+ 7 - 7
Assets/Scripts/CardEffect/BT25/Red/BT25_015.cs

@@ -54,15 +54,15 @@ namespace DCGO.CardEffects.BT25
                 return $"[{tag}] Delete 1 of your opponent's Digimon with 6000 DP or less.";
             }
 
-            bool CanSelectPermanentCondition(Permanent permanent)
-            {
-                return CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card)
-                    &&permanent.HasDP
-                    && permanent.DP <= 6000;
-            }
-
             IEnumerator SharedActivateCoroutine(Hashtable _hashtable, ActivateClass activateClass)
             {
+                bool CanSelectPermanentCondition(Permanent permanent)
+                {
+                    return CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card)
+                        && permanent.HasDP
+                        && permanent.DP <= card.Owner.MaxDP_DeleteEffect(6000, activateClass);
+                }
+
                 if (CardEffectCommons.HasMatchConditionPermanent(CanSelectPermanentCondition))
                 {
                     SelectPermanentEffect selectPermanentEffect = GManager.instance.GetComponent<SelectPermanentEffect>();