| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using System.Linq;
- using Photon;
- using System;
- using Photon.Pun;
- public class BT8_018 : CEntity_Effect
- {
- public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
- {
- List<ICardEffect> cardEffects = new List<ICardEffect>();
- if (timing == EffectTiming.None)
- {
- CanAttackTargetDefendingPermanentClass canAttackTargetDefendingPermanentClass = new CanAttackTargetDefendingPermanentClass();
- canAttackTargetDefendingPermanentClass.SetUpICardEffect($"Can attack to unsuspended Digimon", CanUseCondition, card);
- canAttackTargetDefendingPermanentClass.SetUpCanAttackTargetDefendingPermanentClass(
- attackerCondition: AttackerCondition,
- defenderCondition: DefenderCondition,
- cardEffectCondition: CardEffectCondition);
- cardEffects.Add(canAttackTargetDefendingPermanentClass);
- bool CanUseCondition(Hashtable hashtable)
- {
- if (CardEffectCommons.IsExistOnBattleArea(card))
- {
- if (CardEffectCommons.IsOwnerTurn(card))
- {
- return true;
- }
- }
- return false;
- }
- bool AttackerCondition(Permanent permanent)
- {
- return permanent == card.PermanentOfThisCard();
- }
- bool DefenderCondition(Permanent permanent)
- {
- if (CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card))
- {
- if (!permanent.IsSuspended)
- {
- return true;
- }
- }
- return false;
- }
- bool CardEffectCondition(ICardEffect cardEffect)
- {
- return true;
- }
- }
- return cardEffects;
- }
- }
|