Server.Items.FirebombField.OnMoveOver C# (CSharp) Méthode

OnMoveOver() public méthode

public OnMoveOver ( Mobile m ) : bool
m Mobile
Résultat bool
        public override bool OnMoveOver(Mobile m)
        {
            if (ItemID == 0x398C && m_LitBy == null || (SpellHelper.ValidIndirectTarget(m_LitBy, m) && m_LitBy.CanBeHarmful(m, false)))
            {
                if (m_LitBy != null)
                    m_LitBy.DoHarmful(m);

                m.Damage(2, m_LitBy);
                m.PlaySound(0x208);

                if (!m_Burning.Contains(m))
                    m_Burning.Add(m);
            }

            return true;
        }