Przeglądaj źródła

Update EX5_063.cs

x89rt2 4 miesięcy temu
rodzic
commit
7b13a0aa04
1 zmienionych plików z 24 dodań i 11 usunięć
  1. 24 11
      Assets/Scripts/CardEffect/EX5/Purple/EX5_063.cs

+ 24 - 11
Assets/Scripts/CardEffect/EX5/Purple/EX5_063.cs

@@ -306,23 +306,36 @@ public class EX5_063 : CEntity_Effect
 
             IEnumerator ActivateCoroutine(Hashtable _hashtable)
             {
-                List<CardSource> EnemyDigimon = new List<CardSource>();
                 List<Hashtable> hashtables = CardEffectCommons.GetHashtablesFromHashtable(_hashtable);
 
                 if (hashtables != null)
                 {
-                    foreach (Hashtable hashtable1 in hashtables)
-                    {
-                        CardSource cardSource = CardEffectCommons.GetCardFromHashtable(_hashtable);
-                        if (cardSource.IsDigimon && cardSource.Owner.Enemy)
-                        {
-                            EnemyDigimon.Add(cardSource);
-                        }
-                    }
-
-                    yield return ContinuousController.instance.StartCoroutine(card.Owner.AddMemory(EnemyDigimon.Count, activateClass));
+                    yield return ContinuousController.instance.StartCoroutine(card.Owner.AddMemory(hashtables.Count, activateClass));
                 }
             }
+
+            // Abandoned attempt at fixing gaining mem per your own entities deleted and per non digimon opponent entities deleted
+            //IEnumerator ActivateCoroutine(Hashtable hashtable)
+            //{
+            //    List<CardSource> EnemyDigimon = new List<CardSource>();
+            //    List<Hashtable> hashtables = CardEffectCommons.GetHashtablesFromHashtable(hashtable);
+
+            //    if (hashtables != null)
+            //    {
+            //        foreach (Hashtable hashtable1 in hashtables)
+            //        {
+            //            CardSource cardSource = CardEffectCommons.GetCardFromHashtable(hashtable1);
+            //            if (cardSource != null
+            //             && cardSource.IsDigimon
+            //             && cardSource.Owner == card.Owner.Enemy)
+            //            {
+            //                EnemyDigimon.Add(cardSource);
+            //            }
+            //        }
+
+            //        yield return ContinuousController.instance.StartCoroutine(card.Owner.AddMemory(EnemyDigimon.Count, activateClass));
+            //    }
+            //}
         }
         #endregion