Example #1
0
        /// <summary>
        /// Action
        /// </summary>
        /// <param name="living"></param>
        public override void Execute(GameLiving living)
        {
            if (CheckPreconditions(living, DEAD | SITTING))
            {
                return;
            }

            if (ServerProperties.Properties.USE_NEW_ACTIVES_RAS_SCALING)
            {
                int seconds = 0;
                switch (Level)
                {
                case 1:
                    seconds = 5;
                    break;
                }

                if (seconds > 0)
                {
                    PurgeTimer timer = new PurgeTimer(living, this, seconds)
                    {
                        Interval = 1000
                    };

                    timer.Start(1);
                    DisableSkill(living);
                }
                else
                {
                    SendCastMessage(living);
                    if (RemoveNegativeEffects(living, this))
                    {
                        DisableSkill(living);
                    }
                }
            }
            else
            {
                if (Level < 2)
                {
                    PurgeTimer timer = new PurgeTimer(living, this, 5)
                    {
                        Interval = 1000
                    };

                    timer.Start(1);
                    DisableSkill(living);
                }
                else
                {
                    SendCastMessage(living);
                    if (RemoveNegativeEffects(living, this))
                    {
                        DisableSkill(living);
                    }
                }
            }
        }
Example #2
0
        /// <summary>
        /// Action
        /// </summary>
        /// <param name="living"></param>
        public override void Execute(GameLiving living)
        {
            if (CheckPreconditions(living, DEAD | SITTING)) return;

            if(ServerProperties.Properties.USE_NEW_ACTIVES_RAS_SCALING)
            {
                int seconds = 0;
                switch(Level)
                {
                    case 1:
                        seconds = 5;
                    break;
                    case 2 :
                        seconds = 2;
                    break;
                }

                if(seconds > 0)
                {
                    PurgeTimer timer = new PurgeTimer(living, this, seconds);
                    timer.Interval = 1000;
                    timer.Start(1);
                    DisableSkill(living);
                }
                else
                {
                    SendCastMessage(living);
                    if (RemoveNegativeEffects(living, this))
                    {
                        DisableSkill(living);
                    }
                }
            }
            else
            {
                if (Level < 2)
                {
                    PurgeTimer timer = new PurgeTimer(living, this, 5);
                    timer.Interval = 1000;
                    timer.Start(1);
                    DisableSkill(living);
                }
                else
                {
                    SendCastMessage(living);
                    if (RemoveNegativeEffects(living, this))
                    {
                        DisableSkill(living);
                    }
                }
            }
        }
Example #3
0
        /// <summary>
        /// Action
        /// </summary>
        /// <param name="living"></param>
        public override void Execute(GameLiving living)
        {
            if (CheckPreconditions(living, DEAD | SITTING)) return;

            if (Level < 2)
            {
                PurgeTimer timer = new PurgeTimer(living, this);
                timer.Interval = 1000;
                timer.Start(1);
                DisableSkill(living);
            }
            else
            {
                SendCastMessage(living);
                if (RemoveNegativeEffects(living, this))
                {
                    DisableSkill(living);
                }
            }
        }