x89rt2 4 месяцев назад
Родитель
Сommit
3903658422
1 измененных файлов с 19 добавлено и 3 удалено
  1. 19 3
      Assets/Scripts/CardEffect/BT25/Black/BT25_065.cs

+ 19 - 3
Assets/Scripts/CardEffect/BT25/Black/BT25_065.cs

@@ -37,8 +37,8 @@ namespace DCGO.CardEffects.BT25
 
                 bool CanUseCondition(Hashtable hashtable)
                 {
-                    return CardEffectCommons.IsExistOnBattleArea(card) 
-                        && CardEffectCommons.CanTriggerWhenPermanentSuspends(hashtable, permanent => permanent == card.PermanentOfThisCard());
+                    return CardEffectCommons.IsExistOnBattleArea(card)
+                        && CardEffectCommons.CanTriggerWhenSelfPermanentSuspends(hashtable, card);
                 }
 
                 bool CanActivateCondition(Hashtable hashtable)
@@ -64,7 +64,7 @@ namespace DCGO.CardEffects.BT25
                 string EffectDescription()
                 {
                     return "[Your Turn] When this Digimon attacks a player, lose 2 memory.";
-                }           
+                }
 
                 bool CanUseCondition(Hashtable hashtable)
                 {
@@ -86,6 +86,22 @@ namespace DCGO.CardEffects.BT25
             }
             #endregion
 
+            #region All Turns - Inherited Effect
+            if (timing == EffectTiming.None)
+            {
+                bool Condition()
+                {
+                    return true;
+                }
+
+                cardEffects.Add(CardEffectFactory.ChangeSelfDPStaticEffect(
+                    changeValue: 1000,
+                    isInheritedEffect: true,
+                    card: card,
+                    condition: Condition));
+            }
+            #endregion
+
             return cardEffects;
         }
     }