Beispiel #1
0
        public override void GetContextMenuEntries(Mobile from, System.Collections.Generic.List <Server.ContextMenus.ContextMenuEntry> list)
        {
            base.GetContextMenuEntries(from, list);

            if (ControlMaster != null && ControlMaster.InRange(this, 10) && from == this.ControlMaster)
            {
                list.Add(new InternalContextMenu(this));
            }
        }
        public override void AlterMeleeDamageTo(Mobile to, ref int damage)
        {
            Hits += (damage / 10);

            if (ControlMaster != null && ControlMaster.InRange(this, 5))
            {
                ControlMaster.Hits += (damage / 20);
            }
        }
Beispiel #3
0
        public override void OnGotMeleeAttack(Mobile attacker)
        {
            base.OnGotMeleeAttack(attacker);

            double chance = 0.10;

            if (!Controlled)
            {
                chance = 0.25;
            }
            else if (Controlled && (ControlMaster != null && ControlMaster.InRange(this, 8)))
            {
                chance = 0.30;
            }

            if (chance >= Utility.RandomDouble())
            {
                FlameStrike();
            }
        }