public CounterThatSpell(DynParam <Effect> spell, DynParam <int> doNotCounterCost = null) { _spell = spell; _doNotCounterCost = doNotCounterCost; RegisterDynamicParameters(_doNotCounterCost, _spell); }
public ApplyModifiersToCard(DynParam <Card> card, params CardModifierFactory[] modifiers) { _card = card; _modifiers.AddRange(modifiers); RegisterDynamicParameters(card); }
public PayManaOrSacrifice(DynParam <IManaAmount> amount, string message = null) { _amount = amount; _message = message ?? "Pay mana?"; RegisterDynamicParameters(amount); }
public DestroyPermanent(DynParam <Card> permanent) { _permanent = permanent; SetTags(EffectTag.Destroy); RegisterDynamicParameters(permanent); }
public TargetPlayerSacrificesPermanents(DynParam <int> count, Func <Card, bool> filter, string text) { _count = count; _filter = filter; _text = text; RegisterDynamicParameters(_count); }
public PayManaOrLooseLife(int lifeAmount, IManaAmount manaAmount, DynParam <Player> player) { _lifeAmount = lifeAmount; _manaAmount = manaAmount; _player = player; RegisterDynamicParameters(player); }
public PayManaThen(DynParam <ManaAmount> amount, Effect effect, Parameters parameters = null) : base(effect, parameters ?? new Parameters { Message = "Pay mana?" }) { _amount = amount; RegisterDynamicParameters(_amount); }
public DealDamageToTargets(DynParam <int> amount, bool gainLife = false) { _amount = amount; _gainLife = gainLife; RegisterDynamicParameters(amount); SetTags(EffectTag.DealDamage); }
public PayLifeThen(DynParam <int> amount, Effect effect, Parameters parameters = null) : base(effect, parameters ?? new Parameters { Message = "Pay life?" }) { _amount = amount; RegisterDynamicParameters(_amount); }
public Put11CountersOnTargets(DynParam <int> count) { _count = count; RegisterDynamicParameters(_count); SetTags(EffectTag.IncreasePower, EffectTag.IncreaseToughness); }
public CounterTargetSpell(DynParam <int> doNotCounterCost = null, int?controllerLifeloss = null, bool tapLandsAndEmptyManaPool = false) { _controllerLifeloss = controllerLifeloss; _doNotCounterCost = doNotCounterCost; _tapLandsAndEmptyManaPool = tapLandsAndEmptyManaPool; RegisterDynamicParameters(doNotCounterCost); }
public DealDamageToTargets(DynParam <int> amount, bool gainLife = false, DynParam <bool> canBePrevented = null) { _amount = amount; _gainLife = gainLife; _canBePrevented = canBePrevented ?? true; RegisterDynamicParameters(amount, canBePrevented); SetTags(EffectTag.DealDamage); }
public PlayersSacrificePermanents(DynParam <int> count, string text, Func <Card, bool> validator = null, Func <Effect, Player, bool> playerFilter = null) { _count = count; _validator = validator ?? delegate { return(true); }; _text = text; _playerFilter = playerFilter ?? delegate { return(true); }; RegisterDynamicParameters(count); }
public PlayerSacrificePermanents(DynParam <int> count, DynParam <Player> player, Func <Card, bool> filter, string text) { _count = count; _player = player; _filter = filter; _text = text; RegisterDynamicParameters(_player, _count); }
public PlayerSelectPermanentsAndSacrificeRest(DynParam <int> toUpCount, DynParam <Player> player, Func <Card, bool> filter, string text) { _toUpCount = toUpCount; _player = player; _filter = filter; _text = text; RegisterDynamicParameters(_player, _toUpCount); }
public OpponentDiscardsCards(DynParam <int> randomCount = null, DynParam <int> selectedCount = null, bool youChooseDiscardedCards = false, Func <Card, bool> filter = null) { _randomCount = randomCount ?? 0; _selectedCount = selectedCount ?? 0; _filter = filter ?? delegate { return(true); }; _youChooseDiscardedCards = youChooseDiscardedCards; RegisterDynamicParameters(randomCount, selectedCount); }
public CreateEmblem( string text, int score, DynParam <Player> controller, params ModifierFactory[] modifiers ) { _text = text; _score = score; _controller = controller; _modifiers.AddRange(modifiers); RegisterDynamicParameters(controller); }
public SearchLibraryPutToZone(Zone zone, Action <Card> afterPutToZone = null, int maxCount = 1, int minCount = 0, Func <Effect, Card, bool> validator = null, string text = null, bool revealCards = true, DynParam <Player> player = null) { _validator = validator ?? delegate { return(true); }; _player = player ?? new DynParam <Player>((e, g) => e.Controller, EvaluateAt.OnResolve); _text = text ?? "Search your library for a card."; _zone = zone; _afterPutToZone = afterPutToZone ?? delegate { }; _revealCards = revealCards; _maxCount = maxCount; _minCount = minCount; RegisterDynamicParameters(_player); }
public CreateTokens( DynParam <int> count, CardTemplate token, EffectAction <Card> afterTokenComesToPlay = null, DynParam <Player> tokenController = null, EffectAction <CardTemplate> tokenParameters = null) { _afterTokenComesToPlay = afterTokenComesToPlay ?? delegate { }; _tokenController = tokenController; _setTokenParameters = tokenParameters ?? delegate { }; _count = count; _tokenFactories.Add(token); RegisterDynamicParameters(count, tokenController); }
public DestroyAllPermanents( Func <Effect, int, Card, bool> filter, DynParam <int> countOnInit, bool allowToRegenerate = true) { _countOnInit = countOnInit; _allowToRegenerate = allowToRegenerate; _filter = filter; SetTags(EffectTag.Destroy); if (!allowToRegenerate) { SetTags(EffectTag.CannotRegenerate); } RegisterDynamicParameters(countOnInit); }
public PreventNextXDamageToTargets(DynParam <int> amount) { _amount = amount; RegisterDynamicParameters(amount); }
public CreateTokens(params CardTemplate[] tokens) { _tokenFactories.AddRange(tokens); _afterTokenComesToPlay = delegate { }; _count = 1; }
public DestroyAttachedAttachments(DynParam <Card> permanent, CardSelector filter = null) { _permanent = permanent; _filter = filter ?? delegate { return(true); }; RegisterDynamicParameters(permanent); }
public DestroyAttachedAuras(DynParam <Card> permanent) { _permanent = permanent; RegisterDynamicParameters(permanent); }
public ReturnToHand(DynParam <Card> card) { _card = card; RegisterDynamicParameters(card); }