Browse Source

Update EX11_066.cs (#612)

Co-authored-by: Lewisaaronwelch <48370571+LewisWelch94@users.noreply.github.com>
x89rt2 6 months ago
parent
commit
36cbf37699
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Assets/Scripts/CardEffect/EX11/Black/EX11_066.cs

+ 4 - 1
Assets/Scripts/CardEffect/EX11/Black/EX11_066.cs

@@ -1,3 +1,4 @@
+using System;
 using System.Collections;
 using System.Collections.Generic;
 using System.Linq;
@@ -203,12 +204,14 @@ namespace DCGO.CardEffects.EX11
                                 {
                                     SelectPermanentEffect selectPermanentEffect = GManager.instance.GetComponent<SelectPermanentEffect>();
 
+                                    int maxCount = Math.Min(1, CardEffectCommons.MatchConditionOwnersPermanentCount(card, targetPermanents.Contains));
+
                                     selectPermanentEffect.SetUp(
                                         selectPlayer: card.Owner,
                                         canTargetCondition: permanent => targetPermanents.Contains(permanent),
                                         canTargetCondition_ByPreSelecetedList: null,
                                         canEndSelectCondition: null,
-                                        maxCount: 1,
+                                        maxCount: maxCount,
                                         canNoSelect: false,
                                         canEndNotMax: false,
                                         selectPermanentCoroutine: SelectPermanentCoroutine,