コード例 #1
0
        public override void AddEffect()
        {
            if (Parent is Mobile)
            {
                Mobile from = (Mobile)Parent;
                if (from.Mounted)
                {
                    IMount mount = (IMount)from.Mount;
                    mount.Rider = null;
                }

                from.BodyMod = from.Female ? 400 : 401;
                TransformationSpellHelper.AddContext(from, new TransformContext(null, typeof(HalloweenMask), null));
            }
        }
コード例 #2
0
        public virtual void AddEffect()
        {
            if (Parent is Mobile)
            {
                Mobile from = (Mobile)Parent;
                if (from.Mounted)
                {
                    IMount mount = (IMount)from.Mount;
                    mount.Rider = null;
                }

                from.BodyMod = BodyMod;
                from.HueMod  = HueMod;
                TransformationSpellHelper.AddContext(from, new TransformContext(null, new List <ResistanceMod>(), typeof(HalloweenMask), null));
            }
        }