|
@@ -122,19 +122,8 @@ namespace DCGO.CardEffects.AD1
|
|
|
|
|
|
|
|
#region All Turns
|
|
#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()
|
|
int count()
|
|
|
{
|
|
{
|
|
|
if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
|
|
if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
|
|
@@ -160,11 +149,11 @@ namespace DCGO.CardEffects.AD1
|
|
|
card.PermanentOfThisCard().TopCard == card;
|
|
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)
|
|
if (timing == EffectTiming.None)
|