summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorcsnv <ctt@csnv.es>2014-09-15 23:33:51 +0200
committercsnv <ctt@csnv.es>2014-09-15 23:33:51 +0200
commit462ca3fec65dc01af50f5565a982488cdb89d7be (patch)
tree6c63357303cd28dcc64d56d5019e18f55e8ac14a /src/map/status.c
parentcb0de0393e20f2a85928d2c61bfe8a039486c3d6 (diff)
downloadhercules-462ca3fec65dc01af50f5565a982488cdb89d7be.tar.gz
hercules-462ca3fec65dc01af50f5565a982488cdb89d7be.tar.bz2
hercules-462ca3fec65dc01af50f5565a982488cdb89d7be.tar.xz
hercules-462ca3fec65dc01af50f5565a982488cdb89d7be.zip
Corrected MATK calculation for Mob. Bug report 8340
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 7394c876a..77dc7821d 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -4001,8 +4001,12 @@ void status_calc_bl_(struct block_list *bl, enum scb_flag flag, enum e_status_ca
if( bl->type == BL_PET )
return; // pets are not affected by statuses
- if( opt&SCO_FIRST && bl->type == BL_MOB )
+ if( opt&SCO_FIRST && bl->type == BL_MOB ) {
+#ifdef RENEWAL
+ status->update_matk(bl); // Otherwise, the mob will spawn with lower MATK values
+#endif
return; // assume there will be no statuses active
+ }
status->calc_bl_main(bl, flag);