Esempio n. 1
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                if (m_FullBodyCast.Deleted)
                {
                    return;
                }

                if (targeted is Mobile)
                {
                    if (from.InRange(m_FullBodyCast.GetWorldLocation(), Core.AOS ? 2 : 1))
                    {
                        if (FullBodyCastContext.BeginHeal(from, (Mobile)targeted) != null)
                        {
                            m_FullBodyCast.Consume();
                        }
                    }
                    else
                    {
                        from.SendLocalizedMessage(500295);                           // You are too far away to do that.
                    }
                }
                else
                {
                    from.SendLocalizedMessage(500970);                       // FullBodyCasts can not be used on that.
                }
            }