Ejemplo n.º 1
0
        public static void FinalEffect(Mobile caster, Mobile target, int duration, double protection)
        {
            int[] keywords = new int[] { -1 };

            caster.DoSpeech("*stares at " + target.Name + " with disapproval*", keywords, MessageType.Emote, caster.EmoteHue);

            XmlAwe aweAtt = new XmlAwe((int)protection, duration);
            XmlAttach.AttachTo(target, aweAtt);
            target.SendMessage("You feel so small, so ashamed...");
            target.DoSpeech("*shrinks in awe*", keywords, MessageType.Emote, target.EmoteHue);
        }
Ejemplo n.º 2
0
        public static void FinalEffect(Mobile caster, Mobile target, int effect)
        {
            IPooledEnumerable eable = caster.Map.GetMobilesInRange(caster.Location, caster.ManaMax / 10);
            foreach (Mobile m in eable)
            {
                if ( ((PlayerMobile)caster).AllyList.Contains( m ) )
                {
                    int heal = m.HitsMax * effect;
                    m.PlaySound(0x1F2);
                    m.FixedEffect(0x376A, 9, 32);
                    m.Hits += heal;
                    m.LocalOverheadMessage(MessageType.Regular, 170, false, "+" + heal);
                }
            }
            eable.Free();

            caster.SendMessage("You have sacrificed yourself!");
            caster.DoSpeech("*collapses with a thud!*", new int[] { -1 }, MessageType.Emote, caster.EmoteHue);
            caster.Kill();
        }