x89rt2 3 месяцев назад
Родитель
Сommit
504891ea7e
1 измененных файлов с 20 добавлено и 1 удалено
  1. 20 1
      Assets/Scripts/Script/CardEffectCommons/DNADigivolveEffects.cs

+ 20 - 1
Assets/Scripts/Script/CardEffectCommons/DNADigivolveEffects.cs

@@ -475,6 +475,12 @@ public partial class CardEffectCommons
             yield return null;
         }
 
+        //bool CanJogressCondition(CardSource cardSource)
+        //{
+        //    return (canSelectDNACardCondition == null || canSelectDNACardCondition(cardSource))
+        //        && cardSource.CanPlayJogress(true);
+        //}
+
         if (owner.GetBattleAreaDigimons().Count < DnaPermanentCount)
         {
             yield return ContinuousController.instance.StartCoroutine(failedProcess());
@@ -631,6 +637,19 @@ public partial class CardEffectCommons
         JogressCondition jogressCondition = new (elements, cost);
 
         return jogressCondition;
+
+        //bool PermanentCondition(Permanent permanent)
+        //{
+        //    return permanent != null
+        //        && permanent.TopCard != null
+        //        && permanent.TopCard.Owner == card.Owner
+        //        && permanent.IsDigimon
+        //        && CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent, card);
+        //}
+        //
+        //bool FullPermanentCondition1(Permanent permanent) => PermanentCondition(permanent) && permanentCondition1 != null && permanentCondition1(permanent);
+        //
+        //bool FullPermanentCondition2(Permanent permanent) => PermanentCondition(permanent) && permanentCondition2 != null && permanentCondition2(permanent);
     }
 
     //Private class used to register the callback so this doesn't need to be defined in every card that uses DNA by effect
@@ -648,4 +667,4 @@ public partial class CardEffectCommons
     } 
 
     #endregion
-}
+}