diff options
author | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-11-08 00:33:58 +0000 |
---|---|---|
committer | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-11-08 00:33:58 +0000 |
commit | 00697af8be94e0326bbf9b12e28f1c07c03253ce (patch) | |
tree | 4f4a1c4808fd6e6d9707d0be9cb96f48a4b78b51 | |
parent | abcd7a487672f4abf48bbcf0bf606a169a4d8362 (diff) | |
download | hercules-00697af8be94e0326bbf9b12e28f1c07c03253ce.tar.gz hercules-00697af8be94e0326bbf9b12e28f1c07c03253ce.tar.bz2 hercules-00697af8be94e0326bbf9b12e28f1c07c03253ce.tar.xz hercules-00697af8be94e0326bbf9b12e28f1c07c03253ce.zip |
Changed how mobcount works since it wasn't counting last mob death. (bugreport:2419)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13358 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | src/map/script.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index c130ce80a..8e036e59b 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,8 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +2008/11/07 + * Rev. 13358 Changed how mobcount works since it wasn't counting last mob death. (bugreport:2419) [L0ne_W0lf] 2008/11/06 * Fixed 'Char creation denied' message not being sent properly. [FlavioJS] - Number 2 didn't exist in old clients so it used the default message, diff --git a/src/map/script.c b/src/map/script.c index 2f2d3b5a4..ba4c0f213 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -9530,7 +9530,8 @@ BUILDIN_FUNC(mapwarp) // Added by RoVeRT static int buildin_mobcount_sub(struct block_list *bl,va_list ap) // Added by RoVeRT { char *event=va_arg(ap,char *); - if(strcmp(event,((struct mob_data *)bl)->npc_event)==0) + struct mob_data *md = ((struct mob_data *)bl); + if(strcmp(event,md->npc_event)==0 && md->status.hp > 0) return 1; return 0; } |