public DestroyAttacking(Card card)
 {
     Card = card;
     AreaOfEffects.Add(Controller.Support);
     Triggers.Add(GameEvents.DeclareAttack);
     Triggers.Add(GameEvents.DeclareDirectAttack);
 }
Example #2
0
        public void Apply()
        {
            if (!AreaOfEffects.Contains(Card.Zone))
            {
                return;
            }

            _Apply();
        }
Example #3
0
 public void Trigger(Event gameEvent, int positionInLinkIfTriggered)
 {
     ValidTargets.Clear();
     if (!AreaOfEffects.Contains(Card.Zone))
     {
         return;
     }
     if (Triggers.Count > 0 && !Triggers.Contains(gameEvent.Identity))
     {
         return;
     }
     Triggered      = _Trigger(gameEvent);
     PositionInLink = positionInLinkIfTriggered;
     History.Add(new Trigger(Card, Card, this));
 }
Example #4
0
        public void SetUp(Event gameEvent)
        {
            ValidTargets.Clear();
            if (!AreaOfEffects.Contains(Card.Zone))
            {
                return;
            }

            if (Triggers.Count > 0 && !Triggers.Contains(gameEvent.Identity))
            {
                return;
            }

            CanBeUsed = _SetUp();
            if (CanBeUsed && Card is Support)
            {
                Card.State = Card.States.CanBeActivated;
            }
        }
Example #5
0
 public OnSummonDestroy(Card card)
 {
     Card = card;
     AreaOfEffects.Add(Controller.Field);
     Triggers.Add(GameEvents.Deploy);
 }
Example #6
0
 public BounceSkill(Card card)
 {
     Card = card;
     AreaOfEffects.Add(Controller.Support);
 }
Example #7
0
 public DiscardCard(Card card)
 {
     Card = card;
     AreaOfEffects.Add(Controller.Support);
 }
Example #8
0
 public DrawCards(Card card)
 {
     Card = card;
     AreaOfEffects.Add(Controller.Support);
 }
Example #9
0
 public ReturnTarget(Card card)
 {
     Card = card;
     AreaOfEffects.Add(Controller.Support);
 }
Example #10
0
 public BattleImmunity(Card card)
 {
     Card = card;
     AreaOfEffects.Add(Controller.Field);
     AreaOfEffects.Add(Controller.Graveyard);
 }
Example #11
0
 public DestroyUnit(Card card)
 {
     Card = card;
     AreaOfEffects.Add(Controller.Support);
 }
 public PlayerCannotTakeBattleDamage(Card card)
 {
     Card = card;
     AreaOfEffects.Add(Controller.Field);
 }