Browse Source

fixed up CanLinkFromTargetPermanent

mbunch_kascope 1 năm trước cách đây
mục cha
commit
bb667db43b
1 tập tin đã thay đổi với 7 bổ sung13 xóa
  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;
                                         }
                                     }
                                 }