summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 574c11fb5..bdcc7a4c2 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2864,13 +2864,13 @@ void status_calc_bl_sub_hom(struct homun_data *hd, unsigned long flag) //[orn]
if(status->sp > status->max_sp)
status->sp = status->max_sp;
}
- if(flag&SCB_VIT)
+ if(flag&(SCB_VIT|SCB_DEF))
{ //Since vit affects def, recalculate def.
flag|=SCB_DEF;
status->def = status_calc_def(&hd->bl, &hd->sc, b_status->def);
- status->def+= (status->vit/5 - b_status->vit/5);
+ status->def+=(status->vit/5 - b_status->vit/5);
}
- if(flag&SCB_INT)
+ if(flag&(SCB_INT|SCB_MDEF))
{
flag|=SCB_MDEF;
status->mdef = status_calc_mdef(&hd->bl, &hd->sc, b_status->mdef);