.@r = getrefine();
bonus bUnbreakableWeapon;
bonus bMatkRate,2;
bonus bMatk,160+(3*.@r)+3*(min(BaseLevel,195)/15);
if (.@r>=7) {
   .@val = getskilllv("SA_LANDPROTECTOR");
   bonus2 bMagicAtkEle,Ele_Neutral,.@val;
   bonus2 bMagicAtkEle,Ele_Earth,.@val;
   bonus2 bMagicAtkEle,Ele_Water,.@val;
   bonus2 bMagicAtkEle,Ele_Wind,.@val;
}
if (.@r>=9) {
   bonus bVariableCastrate,-10;
   bonus2 bSkillAtk,"SO_DIAMONDDUST",25;
   bonus2 bSkillAtk,"SO_VARETYR_SPEAR",25;
   bonus2 bSkillAtk,"SO_PSYCHIC_WAVE",25;
   bonus2 bSkillAtk,"SO_EARTHGRAVE",25;
}
if (.@r>=11) {
   bonus2 bMagicAddSize,Size_All,15;
   bonus2 bMagicAtkEle,Ele_Neutral,15;
   bonus2 bMagicAtkEle,Ele_Earth,15;
   bonus2 bMagicAtkEle,Ele_Water,15;
   bonus2 bMagicAtkEle,Ele_Wind,15;
}
if (.@r>=13) {
   bonus2 bSkillAtk,"SO_DIAMONDDUST",15;
   bonus2 bSkillAtk,"SO_VARETYR_SPEAR",15;
   bonus2 bSkillAtk,"SO_PSYCHIC_WAVE",15;
   bonus2 bSkillAtk,"SO_EARTHGRAVE",15;
}