x89rt2 4 сар өмнө
parent
commit
510a80e081

+ 3 - 2
Assets/Scripts/Script/CardEffectFactory/KeyWordEffects/Alliance.cs

@@ -111,7 +111,8 @@ public partial class CardEffectFactory
             }
 
             return CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(attackingPermanent, card)
-                && CardEffectCommons.HasMatchConditionOwnersPermanent(card, CanSelectPermanentCondition);
+                && CardEffectCommons.HasMatchConditionOwnersPermanent(card, CanSelectPermanentCondition)
+                && (condition == null || condition());
         }
 
         IEnumerator ActivateCoroutine(Hashtable hashtable)
@@ -123,4 +124,4 @@ public partial class CardEffectFactory
         return activateClass;
     }
     #endregion
-}
+}