bonus bMatkRate,getrefine();
bonus2 bMagicAddRace,RC_DemiHuman,15;
bonus2 bMagicAddRace,RC_Player_Human,15;
bonus2 bIgnoreMdefRaceRate,RC_DemiHuman,25;
bonus2 bIgnoreMdefRaceRate,RC_Player_Human,25;
bonus bUnbreakableWeapon;
if (getrefine()>5) {
   bonus2 bMagicAddRace,RC_DemiHuman,(getrefine()-5)*2;
   bonus2 bMagicAddRace,RC_Player_Human,(getrefine()-5)*2;
   bonus2 bIgnoreMdefRaceRate,RC_DemiHuman,5+(getrefine()-5)*2;
   bonus2 bIgnoreMdefRaceRate,RC_Player_Human,5+(getrefine()-5)*2;
}
if (getrefine()>8) {
   bonus5 bAutoSpellOnSkill,"WZ_STORMGUST","MG_SAFETYWALL",10,200,1;
   bonus5 bAutoSpellOnSkill,"WZ_METEOR","MG_SAFETYWALL",10,200,1;
   bonus5 bAutoSpellOnSkill,"WZ_VERMILION","MG_SAFETYWALL",10,200,1;
}