Răsfoiți Sursa

Update BT25_072.cs

Fix AT not selecting tamers
x89rt2 3 luni în urmă
părinte
comite
5708dfdeae
1 a modificat fișierele cu 6 adăugiri și 4 ștergeri
  1. 6 4
      Assets/Scripts/CardEffect/BT25/Black/BT25_072.cs

+ 6 - 4
Assets/Scripts/CardEffect/BT25/Black/BT25_072.cs

@@ -229,9 +229,11 @@ namespace DCGO.CardEffects.BT25
                     return permanent == card.PermanentOfThisCard();
                 }
 
-                bool IsOpponentsDigimon(Permanent permanent)
+                bool IsOpponentsPermanent(Permanent permanent)
                 {
-                    return CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card);
+                    return CardEffectCommons.IsPermanentExistsOnOpponentBattleArea(permanent, card)
+                        && (permanent.IsDigimon
+                            || permanent.IsTamer);
                 }
 
                 bool CanUseCondition(Hashtable hashtable)
@@ -247,13 +249,13 @@ namespace DCGO.CardEffects.BT25
 
                 IEnumerator ActivateCoroutine(Hashtable hashtable)
                 {
-                    if (CardEffectCommons.HasMatchConditionPermanent(IsOpponentsDigimon))
+                    if (CardEffectCommons.HasMatchConditionPermanent(IsOpponentsPermanent))
                     {
                         SelectPermanentEffect selectPermanentEffect = GManager.instance.GetComponent<SelectPermanentEffect>();
 
                         selectPermanentEffect.SetUp(
                             selectPlayer: card.Owner,
-                            canTargetCondition: IsOpponentsDigimon,
+                            canTargetCondition: IsOpponentsPermanent,
                             canTargetCondition_ByPreSelecetedList: null,
                             canEndSelectCondition: null,
                             maxCount: 1,