Exemplo n.º 1
0
        public override void Execute()
        {
            base.Execute();
            var target = this.Caster.Team.GetOneTree(this.TargetedCell);

            if (target != null)
            {
                var id     = target.PopNextBuffId();
                var effect = new EffectDice()
                {
                    Duration = DURATION
                };                                                     //TODO : Add EffectId
                var actionId = (short)ActionsEnum.ACTION_793;
                var buff     = new TriggerBuff(id, target, target, effect, base.Spell, false, true, BuffTriggerType.TURN_END, new TriggerBuffApplyHandler(TreeTrigger), actionId);

                target.AddAndApplyBuff(buff);
                ContextHandler.SendGameActionFightDispellableEffectMessage(base.Caster.Fight.Clients, buff);
            }
        }
Exemplo n.º 2
0
        // METHODS
        public void BuffBomb()
        {
            if (this.CanBeBoosted)
            {
                this.m_row++;

                bool update;
                if (update = (this.m_effect == null))
                {
                    this.m_effect = this.GetDispellableEffect();
                }
                else
                {
                    this.m_effect.delta = this.ComboPercent;
                }

                base.Look.ChangeScale((short)(80 + (this.m_row * BUFF_PERCENT)));

                ContextHandler.SendGameActionFightDispellableEffectMessage(base.Fight.Clients, 1027, this, this.m_effect, update);
                ContextHandler.SendGameActionFightChangeLookMessage(base.Fight.Clients, this, this);
            }
        }