Server.Mobiles.PlayerMobile.OnDamage C# (CSharp) Method

OnDamage() public method

public OnDamage ( int amount, Mobile from, bool willKill ) : void
amount int
from Mobile
willKill bool
return void
        public override void OnDamage(int amount, Mobile from, bool willKill)
        {
            int disruptThreshold = 0;

            if (amount > disruptThreshold)
            {
                BandageContext c = BandageContext.GetContext(this);

                if (c != null)
                    c.Slip();
            }

            WeightOverloading.FatigueOnDamage(this, amount);

            base.OnDamage(amount, from, willKill);
        }