Prechádzať zdrojové kódy

fixed blast DNA and digitama coming from breeding

mbunch_kascope 1 rok pred
rodič
commit
3027c151ed

+ 3 - 1
Assets/Scripts/CardEffectFactory/KeyWordEffects/BlastDNADigivolution.cs

@@ -29,7 +29,7 @@ public partial class CardEffectFactory
         if (card.Owner.GetBattleAreaPermanents().Count == 0) return null;
         if (card.Owner.HandCards.Count < 2) return null;
 
-        List<Permanent> fieldPermanents = card.Owner.GetBattleAreaDigimons();
+        List<Permanent> fieldPermanents = new List<Permanent>();
         List<Permanent> permanentSources = new List<Permanent>();
         List<CardSource> handSources = new List<CardSource>();
 
@@ -53,6 +53,8 @@ public partial class CardEffectFactory
 
         bool HasValidDNATargets()
         {
+            fieldPermanents = card.Owner.GetBattleAreaDigimons();
+
             foreach (BlastDNACondition DNACondition in blastDNAConditions)
             {
                 DNACondition.Permanents = fieldPermanents.Filter(permanent => permanent.TopCard.EqualsCardName(DNACondition.Name));

+ 1 - 1
Assets/Scripts/Permanent.cs

@@ -1496,7 +1496,7 @@ public class Permanent
                     return false;
                 }
 
-                if (!IsDigimon)
+                if (!IsDigimon || TopCard.IsDigiEgg)
                 {
                     return false;
                 }

+ 0 - 3
Assets/Scripts/PlayLog.cs

@@ -112,8 +112,6 @@ public class PlayLog : MonoBehaviour
 
         _logList = new List<string>();
 
-        Debug.Log("INIT LOG");
-
         OnAddLog += AddLogString;
         OnLinkPressed += ShowCard;
     }
@@ -125,7 +123,6 @@ public class PlayLog : MonoBehaviour
 
     void AddLogStringCoroutine(string log)
     {
-        Debug.Log("ADD LOG STRING");
         _logList.Add(AddLink(log));
 
         while (GetLogString().Length >= _maxLogCharacterLength)