i just readded the level check (think you forgot to put it back in after some editing) and eveything works fine again
Code:
if( GetLevel() < 28 || !IsWarriorClass() )
{
// Either the PC's level is less than 28 (damage bonuses do not begin to apply until level 28),
// or the PC is not a melee class (only melee classes receive a damage bonus).
return 0;
}