Beispiel #1
0
        public void Heal(int amount, Mobile from, bool message)
        {
            if (!Alive || IsDeadBondedPet)
            {
                return;
            }

            if (!Region.OnHeal(this, ref amount))
            {
                return;
            }

            OnHeal(ref amount, from);

            if ((Hits + amount) > HitsMax)
            {
                amount = HitsMax - Hits;
            }

            Hits += amount;

            if (message && amount > 0 && m_NetState != null)
            {
                m_NetState.Send(new MessageLocalizedAffix(Serial.MinusOne, -1, MessageType.Label, 0x3B2, 3, 1008158, "", AffixType.Append | AffixType.System, amount.ToString(), ""));
            }
        }
Beispiel #2
0
        public virtual bool OnHeal(Mobile m, ref int Heal)
        {
            if (m_Parent != null)
            {
                return(m_Parent.OnHeal(m, ref Heal));
            }

            return(true);
        }
Beispiel #3
0
        public virtual bool OnHeal(Mobile m, Mobile healer, ref int amount)
        {
            if (m_Parent != null)
            {
                return(m_Parent.OnHeal(m, healer, ref amount));
            }

            return(true);
        }