bonus bMdef,15;
bonus bMaxHPrate,3;
bonus bMaxSPrate,3;
bonus bMatkRate,2;
bonus2 bMagicAtkEle,Ele_Neutral,2;
bonus2 bMagicAtkEle,Ele_Fire,2;
.@r = getrefine();
if (.@r>=5) {
   bonus bMaxHPrate,7;
   bonus bMaxSPrate,7;
   bonus bMatkRate,3;
   bonus2 bMagicAtkEle,Ele_Neutral,3;
   bonus2 bMagicAtkEle,Ele_Fire,3;
}
if (.@r>=5) {
   bonus bMaxHPrate,10;
   bonus bMaxSPrate,10;
   bonus bMatkRate,5;
   bonus2 bMagicAtkEle,Ele_Neutral,5;
   bonus2 bMagicAtkEle,Ele_Fire,5;
}