if (getiteminfo(getequipid(EQI_HAND_R),11) == W_STAFF || getiteminfo(getequipid(EQI_HAND_R),11) == W_2HSTAFF) {
   .@r = 2*(getrefine()/4);
   bonus2 bIgnoreMdefRaceRate,RC_All,10+.@r;
   bonus2 bIgnoreMdefRaceRate,RC_Player_Human,-10-.@r;
   bonus2 bIgnoreMdefRaceRate,RC_Player_Doram,-10-.@r;
   bonus3 bSubRace,RC_All,-.@r,BF_NORMAL;
}