Explorar o código

fixing miragegaogamon burst evo

mbunch_kascope hai 1 ano
pai
achega
b87e6959eb
Modificáronse 1 ficheiros con 13 adicións e 4 borrados
  1. 13 4
      Assets/CardEffect/BT13/Blue/BT13_033.cs

+ 13 - 4
Assets/CardEffect/BT13/Blue/BT13_033.cs

@@ -51,13 +51,22 @@ namespace DCGO.CardEffects.BT13
 
                         bool DigimonCondition(Permanent permanent)
                         {
-                            if (CardEffectCommons.IsPermanentExistsOnOwnerBattleArea(permanent, card))
+                            if(permanent != null)
                             {
-                                if (!card.CanNotEvolve(permanent))
+                                if (permanent.TopCard != null)
                                 {
-                                    if (permanent.TopCard.CardNames.Contains("MirageGaogamon"))
+                                    if (permanent.TopCard.Owner == card.Owner)
                                     {
-                                        return true;
+                                        if (permanent.TopCard.Owner.GetFieldPermanents().Contains(permanent))
+                                        {
+                                            if (!card.CanNotEvolve(permanent))
+                                            {
+                                                if (permanent.TopCard.CardNames.Contains("MirageGaogamon"))
+                                                {
+                                                    return true;
+                                                }
+                                            }
+                                        }
                                     }
                                 }
                             }