if (getrefine()<15) {
   bonus5 bAutoSpellWhenHit,"MO_INVESTIGATE",1,1,BF_WEAPON,1;
   bonus2 bAddClass,Class_All,(readparam(bAgi)>=110) ? 6 : 3;
}
else {
   bonus5 bAutoSpellWhenHit,"MO_INVESTIGATE",3,1,BF_WEAPON,1;
   bonus2 bAddClass,Class_All,(readparam(bAgi)>=110) ? 10 : 5;
}