.@r = getrefine();
bonus bUnbreakableWeapon;
bonus bMatkRate,2;
bonus bMatk,160+(3*.@r)+3*(min(BaseLevel,195)/15);
if (.@r>=7) {
   .@val = getskilllv("SA_AUTOSPELL");
   bonus2 bMagicAtkEle,Ele_Fire,.@val;
   bonus2 bMagicAtkEle,Ele_Earth,.@val;
   bonus2 bMagicAtkEle,Ele_Water,.@val;
   bonus2 bMagicAtkEle,Ele_Wind,.@val;
}
if (.@r>=9) {
   bonus bAspd,1;
   bonus2 bSkillAtk,"WZ_HEAVENDRIVE",25;
   bonus2 bSkillAtk,"WZ_EARTHSPIKE",25;
   bonus2 bSkillAtk,"MG_LIGHTNINGBOLT",25;
}
if (.@r>=11) {
   bonus2 bMagicAtkEle,Ele_Fire,15;
   bonus2 bMagicAtkEle,Ele_Earth,15;
   bonus2 bMagicAtkEle,Ele_Water,15;
   bonus2 bMagicAtkEle,Ele_Wind,15;
   bonus bAspd,1;
}
if (.@r>=13) {
   bonus2 bSkillAtk,"WZ_HEAVENDRIVE",15;
   bonus2 bSkillAtk,"WZ_EARTHSPIKE",15;
   bonus2 bSkillAtk,"MG_LIGHTNINGBOLT",15;
}