bonus2 bAddRace,RC_Undead,10;
bonus2 bAddRace,RC_Demon,10;
bonus2 bMagicAddRace,RC_Undead,10;
bonus2 bMagicAddRace,RC_Demon,10;
.@r = getrefine();
if (.@r>=9) {
   .@dmg = 5;
   if (.@r>=12) {
      .@dmg += 7;
   }
   bonus bMatkRate,.@dmg;
}