Просмотр исходного кода

Merge pull request #943 from DCGO2/x89rt2-patch-2

Update Alliance.cs
hooperk 4 месяцев назад
Родитель
Сommit
1bbd99a585

+ 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
-}
+}