示例#1
0
        public void DoAbilityBleed(BaseCreature target, BaseMetaPet pet)
        {
            var timer = new InternalBleedTimer(pet, target, Level);

            timer.Start();

            Experience++;
            if (Experience >= NextLevelExperience)
            {
                LevelUpBleed(pet.ControlMaster);
            }
            NextUse = DateTime.UtcNow + CoolDown;
        }
        public static void BeginBleed(Mobile m, Mobile from)
        {
            Timer t = (Timer)m_BleedTable[m];

            if (t != null)
            {
                t.Stop();
            }

            t = new InternalBleedTimer(from, m);
            m_BleedTable[m] = t;

            t.Start();
        }
示例#3
0
        public void DoAbilityExsanguinate(BaseCreature target, Mobile attacker)
        {
            attacker.SendMessage(54, "You drain the blood of your victim");
            var timer = new InternalBleedTimer(attacker, target, Level);

            timer.Start();

            Experience++;
            if (Experience >= NextLevelExperience)
            {
                LevelUpExsanguinate(_Owner);
            }

            NextUse = DateTime.UtcNow + CoolDown;
        }
示例#4
0
        public void DoAbilityBleed(BaseCreature target, BaseMetaPet pet)
        {
            var timer = new InternalBleedTimer(pet, target, Level);
            timer.Start();

            Experience ++;
            if (Experience >= NextLevelExperience)
            {
                LevelUpBleed(pet.ControlMaster);
            }
            NextUse = DateTime.UtcNow + CoolDown;
        }