Răsfoiți Sursa

Update BT25-075

hooperk 3 luni în urmă
părinte
comite
ef2fdf1d46

+ 11 - 2
Assets/Scripts/CardEffect/BT25/Black/BT25_075.cs

@@ -282,6 +282,7 @@ namespace DCGO.CardEffects.BT25
                 activateClass.SetUpICardEffect("Linked digimon may Attack", CanUseCondition, card);
                 activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, -1, false, EffectDescription());
                 activateClass.SetIsSkippable(true);
+                activateClass.SetEffectTargets(TargetablePermanents);
                 cardEffects.Add(activateClass);
 
                 string EffectDescription()
@@ -298,11 +299,19 @@ namespace DCGO.CardEffects.BT25
                         && CardEffectCommons.CanTriggerWhenLinked(hashtable, PermanentCondition, null);
                 }
 
-                bool CanActivateCondition(Hashtable hashtable) => CardEffectCommons.IsExistOnBattleArea(card);
+                Permanent GetAttacker(Hashtable hashtable) => CardEffectCommons.GetPermanentFromHashtable(hashtable);
+
+                List<Permanent> TargetablePermanents(Hashtable hashtable) => new List<Permanent>() { GetAttacker(hashtable) };
+
+                bool CanActivateCondition(Hashtable hashtable)
+                {
+                    activateClass.SetEffectName($"{GetAttacker(hashtable).TopCard.BaseENGCardNameFromEntity} may attack");
+                    return CardEffectCommons.IsExistOnBattleArea(card);
+                }
 
                 IEnumerator ActivateCoroutine(Hashtable hashtable)
                 {
-                    Permanent attacker = CardEffectCommons.GetPermanentFromHashtable(hashtable);
+                    Permanent attacker = GetAttacker(hashtable);
                     if (attacker != null && attacker.TopCard != null)
                     {
                         SelectAttackEffect selectAttackEffect = GManager.instance.GetComponent<SelectAttackEffect>();

+ 5 - 5
Assets/Scripts/Script/CardController.cs

@@ -4930,11 +4930,11 @@ public class IMassDegeneration
 
         bool ValidTarget(Permanent permanent)
         {
-            return permanent == null
-                && permanent.TopCard == null
-                && permanent.ImmuneFromDeDigivolve()
-                && permanent.ImmuneFromStackTrashing(_cardEffect)
-                && permanent.TopCard.CanNotBeAffected(_cardEffect);
+            return permanent != null
+                && permanent.TopCard != null
+                && !permanent.ImmuneFromDeDigivolve()
+                && !permanent.ImmuneFromStackTrashing(_cardEffect)
+                && !permanent.TopCard.CanNotBeAffected(_cardEffect);
         }
 
         List<Permanent> permanents_Fixed = _permanents.Filter(ValidTarget);