فهرست منبع

EX7_020 ESS Fix

Fixing bug "ESS does not trigger if opponent has no Digimon". Copied implementation from EX7_016, which is the exact same ESS.
skikklesman 11 ماه پیش
والد
کامیت
ac26bb124a
1فایلهای تغییر یافته به همراه4 افزوده شده و 16 حذف شده
  1. 4 16
      Assets/CardEffect/EX7/Blue/EX7_020.cs

+ 4 - 16
Assets/CardEffect/EX7/Blue/EX7_020.cs

@@ -3,6 +3,7 @@ using System.Collections;
 using System.Collections.Generic;
 using System.Linq;
 
+// Paledramon
 namespace DCGO.CardEffects.EX7
 {
     public class EX7_020 : CEntity_Effect
@@ -103,30 +104,17 @@ namespace DCGO.CardEffects.EX7
 
                 bool CanUseCondition(Hashtable hashtable)
                 {
-                    if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
-                    {
-                        return CardEffectCommons.CanTriggerOnAttack(hashtable, card);
-                    }
-
-                    return false;
+                    return CardEffectCommons.CanTriggerOnAttack(hashtable, card);
                 }
 
                 bool CanActivateCondition(Hashtable hashtable)
                 {
-                    if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
-                    {
-                        if (CardEffectCommons.HasMatchConditionPermanent(CanSelectDigimonCondition))
-                        {
-                            return true;
-                        }
-                    }
-
-                    return false;
+                    return CardEffectCommons.IsExistOnBattleAreaDigimon(card);
                 }
 
                 IEnumerator ActivateCoroutine(Hashtable hashtable)
                 {
-                    if (CardEffectCommons.HasMatchConditionPermanent(CanSelectDigimonCondition))
+                    if (CardEffectCommons.HasMatchConditionOpponentsPermanent(card, CanSelectDigimonCondition))
                     {
                         int maxCount = Math.Min(1, CardEffectCommons.MatchConditionPermanentCount(CanSelectDigimonCondition));