Ejemplo n.º 1
0
        public override TaskState Process()
        {
            var source = Source as IPlayable;

            if (source == null || Number == 0)
            {
                return(TaskState.STOP);
            }

            var buff = new BuffTask(Buffs.Health(Number), Type, null);

            buff.Copy(this);

            return(buff.Process());
        }
Ejemplo n.º 2
0
        private static void Priest(IDictionary <string, List <Enchantment> > cards)
        {
            // ----------------------------------------- SPELL - PRIEST
            // [BRM_017] Resurrect - COST:2
            // - Set: fp2, Rarity: rare
            // --------------------------------------------------------
            // Text: Summon a random friendly minion that died this game.
            // --------------------------------------------------------
            // PlayReq:
            // - REQ_NUM_MINION_SLOTS = 1
            // - REQ_FRIENDLY_MINION_DIED_THIS_GAME = 0
            // --------------------------------------------------------
            cards.Add("BRM_017", new List <Enchantment> {
                new Enchantment
                {
                    Activation = EnchantmentActivation.SPELL,
                    SingleTask = ComplexTask.SummonRandomMinionThatDied(),
                },
            });

            // ---------------------------------------- MINION - PRIEST
            // [BRM_004] Twilight Whelp - COST:1 [ATK:2/HP:1]
            // - Race: dragon, Set: fp2, Rarity: common
            // --------------------------------------------------------
            // Text: <b>Battlecry:</b> If you're holding a Dragon, gain +2 Health.
            // --------------------------------------------------------
            // GameTag:
            // - BATTLECRY = 1
            // --------------------------------------------------------
            cards.Add("BRM_004", new List <Enchantment> {
                new Enchantment
                {
                    Activation = EnchantmentActivation.BATTLECRY,
                    SingleTask = ComplexTask.Create(
                        new ConditionTask(EntityType.SOURCE, SelfCondition.IsDragonInHand),
                        new FlagTask(true, new BuffTask(Buffs.Health(2), EntityType.SOURCE)))
                },
            });
        }