Просмотр исходного кода

Merge pull request #845 from DCGO2/hooperk-AD1-004

Fix AD1-004 not getting DP increase without boost
x89rt2 5 месяцев назад
Родитель
Сommit
cdcc2b615e
1 измененных файлов с 6 добавлено и 17 удалено
  1. 6 17
      Assets/Scripts/CardEffect/AD1/Red/AD1_004.cs

+ 6 - 17
Assets/Scripts/CardEffect/AD1/Red/AD1_004.cs

@@ -122,19 +122,8 @@ namespace DCGO.CardEffects.AD1
 
             #region All Turns
 
-            if (timing != EffectTiming.None)
+            if (timing == EffectTiming.None)
             {
-                if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
-                {
-                    Permanent thisPermanent = card.PermanentOfThisCard();
-
-                    
-                    if(Condition())
-                        thisPermanent.AddBoost(new Permanent.DPBoost("AD1_004", count(), Condition));
-                    else
-                        thisPermanent.RemoveBoost("AD1_004");
-                }
-                
                 int count()
                 {
                     if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
@@ -160,11 +149,11 @@ namespace DCGO.CardEffects.AD1
                            card.PermanentOfThisCard().TopCard == card;
                 }
 
-                //cardEffects.Add(CardEffectFactory.ChangeSelfDPStaticEffect<Func<int>>(
-                //    changeValue: count,
-                //    isInheritedEffect: false,
-                //    card: card,
-                //    condition: Condition));
+                cardEffects.Add(CardEffectFactory.ChangeSelfDPStaticEffect<Func<int>>(
+                   changeValue: count,
+                   isInheritedEffect: false,
+                   card: card,
+                   condition: Condition));
             }
 
             if (timing == EffectTiming.None)