Exemple #1
0
        public override ISimpleTask Clone()
        {
            var clone = new BuffTask(Buff, Type, Condition);

            clone.Copy(this);
            return(clone);
        }
Exemple #2
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());
        }
        public override TaskState Process()
        {
            IncludeTask.GetEntites(Type, Controller, Source, Target, Playables).ForEach(p =>
            {
                var minion = p as Minion;
                if (minion == null)
                {
                    return;
                }
                var buff = new BuffTask(Buffs.StealthTurn(minion.NumAttacksThisTurn), Type);
                buff.Copy(this);
                buff.Process();
            });

            return(TaskState.COMPLETE);
        }