summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorMichieru <Michieru@users.noreply.github.com>2014-09-15 23:52:41 +0200
committerMichieru <Michieru@users.noreply.github.com>2014-09-15 23:52:41 +0200
commit93df826a51e57710c62c3809b4181c67d7ef6ae1 (patch)
tree959dff3d40afbd145aae5227ba004d6452c6879c /src/map
parenta4dcd61e0ba326d26f70ab4b6538f84111dbdef0 (diff)
parent462ca3fec65dc01af50f5565a982488cdb89d7be (diff)
downloadhercules-93df826a51e57710c62c3809b4181c67d7ef6ae1.tar.gz
hercules-93df826a51e57710c62c3809b4181c67d7ef6ae1.tar.bz2
hercules-93df826a51e57710c62c3809b4181c67d7ef6ae1.tar.xz
hercules-93df826a51e57710c62c3809b4181c67d7ef6ae1.zip
Merge pull request #356 from csnv/tinyfixes
Corrected MATK calculation for Mob. Bug report 8340
Diffstat (limited to 'src/map')
-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 b17c8d5d0..e48b2931c 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);