.@r = getrefine();
bonus bInt,4;
bonus bMdef,10;
bonus bVariableCastrate,-10;
if (.@r == 7 || .@r == 8) {
   bonus bDef,2;
   bonus bMatkRate,5;
   bonus bVariableCastrate,-5;
}
if (.@r>=9) {
   bonus bMdef,5;
   bonus bMatkRate,5;
   bonus bVariableCastrate,-5;
   bonus bDelayrate,-5;
}