public override void OnDoubleClick(Mobile from)
{
if (!IsChildOf(from.Backpack))
{
from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
}
else if (from.Mounted)
{
from.SendLocalizedMessage(1042561); // Please dismount first.
}
else if (Factions.Sigil.ExistsOn(from))
{
from.SendLocalizedMessage(1010521); // You cannot polymorph while you have a Town Sigil
}
else if (TransformationSpellHelper.UnderTransformation(from))
{
from.SendLocalizedMessage(1061633); // You cannot polymorph while in that form.
}
else if (DisguiseTimers.IsDisguised(from))
{
from.SendLocalizedMessage(502167); // You cannot polymorph while disguised.
}
else if (from.BodyMod == 183 || from.BodyMod == 184)
{
from.SendLocalizedMessage(1042512); // You cannot polymorph while wearing body paint
}
else
{
if (from.BodyMod != 0)
{
from.BodyMod = 0;
}
else
{
from.BodyMod = m_BodyMod;
}
from.PlaySound(m_TransformSound);
from.FixedParticles(0x376A, 9, 32, 5005, EffectLayer.Waist);
}
}