public DestroyAttacking(Card card) { Card = card; AreaOfEffects.Add(Controller.Support); Triggers.Add(GameEvents.DeclareAttack); Triggers.Add(GameEvents.DeclareDirectAttack); }
public void Apply() { if (!AreaOfEffects.Contains(Card.Zone)) { return; } _Apply(); }
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)); }
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; } }
public OnSummonDestroy(Card card) { Card = card; AreaOfEffects.Add(Controller.Field); Triggers.Add(GameEvents.Deploy); }
public BounceSkill(Card card) { Card = card; AreaOfEffects.Add(Controller.Support); }
public DiscardCard(Card card) { Card = card; AreaOfEffects.Add(Controller.Support); }
public DrawCards(Card card) { Card = card; AreaOfEffects.Add(Controller.Support); }
public ReturnTarget(Card card) { Card = card; AreaOfEffects.Add(Controller.Support); }
public BattleImmunity(Card card) { Card = card; AreaOfEffects.Add(Controller.Field); AreaOfEffects.Add(Controller.Graveyard); }
public DestroyUnit(Card card) { Card = card; AreaOfEffects.Add(Controller.Support); }
public PlayerCannotTakeBattleDamage(Card card) { Card = card; AreaOfEffects.Add(Controller.Field); }