private static void Paladin(IDictionary <string, CardDef> cards) { // ---------------------------------------- SPELL - PALADIN // [FP1_020] Avenge - COST:1 // - Set: naxx, Rarity: common // -------------------------------------------------------- // Text: <b>Secret:</b> When one of your minions dies, give a random friendly minion +3/+2. // -------------------------------------------------------- // GameTag: // - SECRET = 1 // -------------------------------------------------------- cards.Add("FP1_020", new CardDef(new Power { InfoCardId = "FP1_020e", Trigger = new Trigger(TriggerType.DEATH) { TriggerSource = TriggerSource.FRIENDLY, SingleTask = ComplexTask.Create( new ConditionTask(EntityType.SOURCE, SelfCondition.IsBoardCount(0)), new FlagTask(false, ComplexTask.Secret( new RandomTask(1, EntityType.MINIONS), new AddEnchantmentTask("FP1_020e", EntityType.STACK)))) } })); }
private static void Mage(IDictionary <string, Power> cards) { // ------------------------------------------- SPELL - MAGE // [CS2_031] Ice Lance - COST:1 // - Fac: neutral, Set: hof, Rarity: common // -------------------------------------------------------- // Text: <b>Freeze</b> a character. If it was already <b>Frozen</b>, deal $4 damage instead. @spelldmg // -------------------------------------------------------- // GameTag: // - FREEZE = 1 // -------------------------------------------------------- // PlayReq: // - REQ_TARGET_TO_PLAY = 0 // -------------------------------------------------------- cards.Add("CS2_031", new Power { PowerTask = ComplexTask.Create( new ConditionTask(EntityType.TARGET, SelfCondition.IsFrozen), ComplexTask.True(new DamageTask(4, EntityType.TARGET, true)), ComplexTask.False(ComplexTask.Freeze(EntityType.TARGET))) }); // ------------------------------------------- SPELL - MAGE // [EX1_295] Ice Block - COST:3 // - Fac: neutral, Set: expert1, Rarity: epic // -------------------------------------------------------- // Text: <b>Secret:</b> When your hero takes fatal damage, prevent it and become <b>Immune</b> this turn. // -------------------------------------------------------- // GameTag: // - SECRET = 1 // -------------------------------------------------------- // RefTag: // - IMMUNE = 1 // -------------------------------------------------------- cards.Add("EX1_295", new Power { Trigger = new Trigger(TriggerType.PREDAMAGE) { TriggerSource = TriggerSource.HERO, Condition = SelfCondition.IsHeroLethalPreDamaged, FastExecution = true, SingleTask = ComplexTask.Secret( new AddEnchantmentTask("EX1_295o", EntityType.HERO)) } }); }
private static void Mage(IDictionary <string, Power> cards) { // ------------------------------------------- SPELL - MAGE // [FP1_018] Duplicate - COST:3 // - Set: naxx, Rarity: common // -------------------------------------------------------- // Text: <b>Secret:</b> When a friendly minion dies, put 2 copies of it into your hand. // -------------------------------------------------------- // GameTag: // - SECRET = 1 // -------------------------------------------------------- cards.Add("FP1_018", new Power { Trigger = new Trigger(TriggerType.DEATH) { TriggerSource = TriggerSource.FRIENDLY, SingleTask = ComplexTask.Create( new ConditionTask(EntityType.SOURCE, SelfCondition.IsHandFull), new FlagTask(false, ComplexTask.Secret( new CopyTask(EntityType.TARGET, Zone.HAND, 2)))) } }); }
public TriggerBuilder SetSecretTasks(params ISimpleTask[] tasks) { _triggerBuilder._trigger.SingleTask = ComplexTask.Secret(tasks); return(_triggerBuilder); }
private static void Mage(IDictionary <string, CardDef> cards) { // ------------------------------------------ MINION - MAGE // [GIL_838] Black Cat - COST:3 [ATK:3/HP:3] // - Race: beast, Set: gilneas, Rarity: common // -------------------------------------------------------- // Text: <b>Spell Damage +1</b> // <b>Battlecry:</b> If your deck has only odd-Cost cards, draw a card. // -------------------------------------------------------- // GameTag: // - SPELLPOWER = 1 // - BATTLECRY = 1 // -------------------------------------------------------- cards.Add("GIL_838", new CardDef(new Power { // TODO Test: Black Cat_GIL_838 PowerTask = ComplexTask.Create( new ConditionTask(EntityType.SOURCE, SelfCondition.HasNoEvenCostInDeck), new FlagTask(true, new DrawTask())) })); // ------------------------------------------- SPELL - MAGE // [CS2_031] Ice Lance - COST:1 // - Fac: neutral, Set: hof, Rarity: common // -------------------------------------------------------- // Text: <b>Freeze</b> a character. If it was already <b>Frozen</b>, deal $4 damage instead. @spelldmg // -------------------------------------------------------- // GameTag: // - FREEZE = 1 // ------------------------------------st-------------------- // PlayReq: // - REQ_TARGET_TO_PLAY = 0 // -------------------------------------------------------- cards.Add("CS2_031", new CardDef(new Dictionary <PlayReq, int>() { { PlayReq.REQ_TARGET_TO_PLAY, 0 } }, new Power { PowerTask = ComplexTask.Create( new ConditionTask(EntityType.TARGET, SelfCondition.IsFrozen), ComplexTask.True(new DamageTask(4, EntityType.TARGET, true)), ComplexTask.False(ComplexTask.Freeze(EntityType.TARGET))) })); // ------------------------------------------- SPELL - MAGE // [EX1_295] Ice Block - COST:3 // - Fac: neutral, Set: expert1, Rarity: epic // -------------------------------------------------------- // Text: <b>Secret:</b> When your hero takes fatal damage, prevent it and become <b>Immune</b> this turn. // -------------------------------------------------------- // GameTag: // - SECRET = 1 // -------------------------------------------------------- // RefTag: // - IMMUNE = 1 // -------------------------------------------------------- cards.Add("EX1_295", new CardDef(new Power { Trigger = new Trigger(TriggerType.PREDAMAGE) { TriggerSource = TriggerSource.HERO, Condition = SelfCondition.IsHeroLethalPreDamaged, FastExecution = true, SingleTask = ComplexTask.Secret( new AddEnchantmentTask("EX1_295o", EntityType.HERO)) } })); }