.@r = getrefine();
bonus2 bSkillAtk,"MG_FIREBOLT",15+2*.@r;
bonus2 bSkillAtk,"MG_COLDBOLT",15+2*.@r;
bonus2 bSkillAtk,"WZ_EARTHSPIKE",15+2*.@r;
bonus2 bSkillAtk,"MG_LIGHTNINGBOLT",15+2*.@r;
if (.@r>=7) {
   bonus bMatk,20;
}
if (.@r>=9) {
   autobonus "{ bonus bMatkRate,10; bonus bInt,70; }",1,5000,BF_WEAPON;
}
if (.@r>=11) {
   bonus2 bMagicAtkEle,Ele_Fire,10;
   bonus2 bMagicAtkEle,Ele_Earth,10;
   bonus2 bMagicAtkEle,Ele_Water,10;
   bonus2 bMagicAtkEle,Ele_Wind,10;
}