From 5d658f9d7b68c96839baf7932dc8a3cb30adef5f Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 8 Jan 2008 13:30:43 +0000 Subject: - Made the pc reg variables receive a const char* as the argument, since they duplicate the value anyway (and they were receiving const char* values from the setd function) - Fixed Wand of Hermod not starting the SC_HERMOD status change (which blocks spells) - Fixed a missing break in the cast cancel code. - Fixed additional def/mdef from vit/int bonuses being lost when a status change that affects def/mdef triggers (for homunculus) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12033 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/status.c') 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); -- cgit v1.2.3-70-g09d2