.@r = getequiprefinerycnt(EQI_HAND_R);
if (getiteminfo(getequipid(EQI_HAND_R),11) == W_STAFF || getiteminfo(getequipid(EQI_HAND_R),11) == W_2HSTAFF) {
   bonus2 bMagicAtkEle,Ele_Dark,10;
   if (.@r>=10) {
      bonus2 bMagicAtkEle,Ele_Dark,10;
      if (.@r>=14) {
         bonus2 bMagicAtkEle,Ele_Dark,10;
      }
   }
}