bonus bInt,5;
bonus bDex,5;
bonus bMdef,10;
bonus2 bSubEle,Ele_Dark,5;
bonus2 bSubEle,Ele_Undead,5;
bonus2 bSubRace,RC_Demon,5;
bonus2 bSubRace,RC_Undead,5;
.@r = getrefine();
.@val = (readparam(bInt)+readparam(bDex))/20;
if (.@r>=7) {
   bonus bSPGainValue,10;
   if (.@r>=8) {
      bonus bBaseAtk,5*.@val;
      bonus bDelayrate,-1*.@val;
      if (.@r>=9) {
         bonus bSPGainValue,10;
      }
   }
}