Server.Mobiles.BaseCreature.OnGotMeleeAttack C# (CSharp) Méthode

OnGotMeleeAttack() public méthode

public OnGotMeleeAttack ( Mobile attacker ) : void
attacker Mobile
Résultat void
        public virtual void OnGotMeleeAttack( Mobile attacker )
        {
            if ( AutoDispel && attacker is BaseCreature && ((BaseCreature)attacker).IsDispellable && AutoDispelChance > Utility.RandomDouble() )
                Dispel( attacker );
        }
BaseCreature