Bladeren bron

Removed more double instance of exist on field checks

BennAbbot 5 maanden geleden
bovenliggende
commit
86c61ba3c3

+ 1 - 4
Assets/Scripts/CardEffect/P/Black/P_121.cs

@@ -170,9 +170,7 @@ public class P_121 : CEntity_Effect
             {
                 if (isExistOnField(card))
                 {
-                    if (card.Owner.GetBattleAreaDigimons().Contains(card.PermanentOfThisCard()))
-                    {
-                        yield return ContinuousController.instance.StartCoroutine(
+                    yield return ContinuousController.instance.StartCoroutine(
                                          CardEffectCommons.DNADigivolvePermanentsIntoHandOrTrashCard(
                                              CanSelectCardCondition,
                                              payCost: true,
@@ -180,7 +178,6 @@ public class P_121 : CEntity_Effect
                                              activateClass,
                                              permanentConditions: new Func<Permanent, bool>[] { (permanent) => permanent == card.PermanentOfThisCard() }
                                          ));
-                    }
                 }
             }
         }

+ 8 - 11
Assets/Scripts/CardEffect/P/Green/P_118.cs

@@ -170,17 +170,14 @@ public class P_118 : CEntity_Effect
             {
                 if (isExistOnField(card))
                 {
-                    if (card.Owner.GetBattleAreaDigimons().Contains(card.PermanentOfThisCard()))
-                    {
-                        yield return ContinuousController.instance.StartCoroutine(
-                                         CardEffectCommons.DNADigivolvePermanentsIntoHandOrTrashCard(
-                                             CanSelectCardCondition,
-                                             payCost: true,
-                                             isHand: true,
-                                             activateClass,
-                                             permanentConditions: new Func<Permanent, bool>[] { (permanent) => permanent == card.PermanentOfThisCard() }
-                                         ));
-                    }
+                    yield return ContinuousController.instance.StartCoroutine(
+                                          CardEffectCommons.DNADigivolvePermanentsIntoHandOrTrashCard(
+                                              CanSelectCardCondition,
+                                              payCost: true,
+                                              isHand: true,
+                                              activateClass,
+                                              permanentConditions: new Func<Permanent, bool>[] { (permanent) => permanent == card.PermanentOfThisCard() }
+                                          ));
                 }
             }
         }

+ 1 - 4
Assets/Scripts/CardEffect/P/Red/P_119.cs

@@ -170,9 +170,7 @@ public class P_119 : CEntity_Effect
             {
                 if (isExistOnField(card))
                 {
-                    if (card.Owner.GetBattleAreaDigimons().Contains(card.PermanentOfThisCard()))
-                    {
-                        yield return ContinuousController.instance.StartCoroutine(
+                    yield return ContinuousController.instance.StartCoroutine(
                                          CardEffectCommons.DNADigivolvePermanentsIntoHandOrTrashCard(
                                              CanSelectCardCondition,
                                              payCost: true,
@@ -180,7 +178,6 @@ public class P_119 : CEntity_Effect
                                              activateClass,
                                              permanentConditions: new Func<Permanent, bool>[] { (permanent) => permanent == card.PermanentOfThisCard() }
                                          ));
-                    }
                 }
             }
         }