Răsfoiți Sursa

link updates

mbunch_kascope 1 an în urmă
părinte
comite
c99de670d9

+ 6 - 3
Assets/Scripts/CardEffectFactory/KeyWordEffects/Link.cs

@@ -25,7 +25,7 @@ public partial class CardEffectFactory
 
         ActivateClass activateClass = new ActivateClass();
         activateClass.SetUpICardEffect("Link", CanUseCondition, card);
-        activateClass.SetUpActivateClass(null, ActivateCoroutine, -1, true, DataBase.BlastDigivolveEffectDiscription());
+        activateClass.SetUpActivateClass(null, ActivateCoroutine, -1, true, DataBase.LinkEffectDiscription());
 
         bool CanSelectPermanentCondition(Permanent permanent)
         {
@@ -33,9 +33,12 @@ public partial class CardEffectFactory
             {
                 if(permanent != card.PermanentOfThisCard())
                 {
-                    if (card.linkCondition == null || card.linkCondition.digimonCondition(permanent))
+                    if (permanent.IsDigimon)
                     {
-                        return true;
+                        if (card.linkCondition == null || card.linkCondition.digimonCondition(permanent))
+                        {
+                            return true;
+                        }
                     }
                 }
             }

+ 5 - 0
Assets/Scripts/DataBase.cs

@@ -557,6 +557,11 @@ public class DataBase : MonoBehaviour
         return "<Execute> (At the end of your turn, this Digimon may attack. At the end of that attack, delete this Digimon. Your opponent's unsuspended Digimon can also be attacked with this effect.)";
     }
 
+    public static string LinkEffectDiscription()
+    {
+        return "[Link] (Plug this card from the hand or battle area sideways into the specified Digimon in the battle area.)";
+    }
+
     public static string ReplaceToASCII(string text)
     {
         if (string.IsNullOrEmpty(text))

+ 1 - 1
Assets/Scripts/Permanent.cs

@@ -1024,7 +1024,7 @@ public class Permanent
         {
             if (cardSources.Count >= 1)
             {
-                return cardSources[0];
+                return cardSources.First(source => !LinkedCards.Contains(source));
             }
 
             return null;