Преглед на файлове

fixed up CanLinkFromTargetPermanent

mbunch_kascope преди 1 година
родител
ревизия
bb667db43b
променени са 1 файла, в които са добавени 7 реда и са изтрити 13 реда
  1. 7 13
      Assets/Scripts/CardSource.cs

+ 7 - 13
Assets/Scripts/CardSource.cs

@@ -2612,23 +2612,17 @@ public class CardSource : MonoBehaviour
                         {
                             if (!this.CanNotEvolve(targetPermanent))
                             {
-                                if (appFusionCondition.digimonCondition(targetPermanent))
+                                if (linkCondition.digimonCondition(targetPermanent))
                                 {
-                                    foreach (CardSource linkedCard in targetPermanent.LinkedCards)
+                                    if (PayCost)
                                     {
-                                        if (appFusionCondition.linkedCondition(linkedCard))
-                                        {
-                                            if (PayCost)
-                                            {
-                                                int cost = appFusionCondition.cost;
+                                        int cost = linkCondition.cost;
 
-                                                cost = GetChangedCostItselef(cost, SelectCardEffect.Root.Hand, new List<Permanent>() { targetPermanent }, checkAvailability: true);
+                                        cost = GetChangedCostItselef(cost, SelectCardEffect.Root.Hand, new List<Permanent>() { targetPermanent }, checkAvailability: true);
 
-                                                if (Owner.MaxMemoryCost < cost)
-                                                {
-                                                    return false;
-                                                }
-                                            }
+                                        if (Owner.MaxMemoryCost < cost)
+                                        {
+                                            return false;
                                         }
                                     }
                                 }