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