bonus bVariableCastrate,-5;
.@r = getrefine();
if (.@r>=3) {
   bonus bMatk,.@r/3*4;
}
if (.@r>=7) {
   bonus2 bMagicAtkEle,Ele_Fire,5;
   bonus2 bMagicAtkEle,Ele_Wind,5;
   bonus2 bMagicAtkEle,Ele_Water,5;
   bonus2 bMagicAtkEle,Ele_Ground,5;
   bonus2 bMagicAtkEle,Ele_Neutral,5;
}
if (.@r>=9) {
   bonus bDelayrate,-10;
}