| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System;
- using System.Collections.Generic;
- public class ST1_11 : CEntity_Effect
- {
- public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
- {
- List<ICardEffect> cardEffects = new List<ICardEffect>();
- if (timing == EffectTiming.None)
- {
- int count()
- {
- if (CardEffectCommons.IsExistOnBattleArea(card))
- {
- return card.PermanentOfThisCard().DigivolutionCards.Count / 2;
- }
- return 0;
- }
- bool Condition()
- {
- if (CardEffectCommons.IsExistOnBattleArea(card))
- {
- if (CardEffectCommons.IsOwnerTurn(card))
- {
- if (count() >= 1)
- {
- return true;
- }
- }
- }
- return false;
- }
- cardEffects.Add(CardEffectFactory.ChangeSelfSAttackStaticEffect<Func<int>>(
- changeValue: () => count(),
- isInheritedEffect: false,
- card: card,
- condition: Condition));
- }
- return cardEffects;
- }
- }
|