protected override void OnTarget(Mobile from, object targeted) { if (targeted is Mobile) { if (from.InRange(m_talisman.GetWorldLocation(), 50)) { if (m_talisman.m_Charges >= 0) { m_talisman.m_Charges--; } m_talisman.InvalidateProperties(); m_talisman.Target(m_talisman, from, (Mobile)targeted); } else { from.SendLocalizedMessage(500295); // You are too far away to do that. } } else { from.SendLocalizedMessage(1046439); // That is not a valid target. } }