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