summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-25 10:16:09 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-25 10:16:09 +0000
commit009e7837dea970aca8f6e2468c9cca310198fc21 (patch)
treed909b59ccebaa82eb937fe6a7ba45d608e4ab843 /src/map/atcommand.c
parentb003c06063b37f5b9e8e7c156e961ee2bb3067bc (diff)
downloadhercules-009e7837dea970aca8f6e2468c9cca310198fc21.tar.gz
hercules-009e7837dea970aca8f6e2468c9cca310198fc21.tar.bz2
hercules-009e7837dea970aca8f6e2468c9cca310198fc21.tar.xz
hercules-009e7837dea970aca8f6e2468c9cca310198fc21.zip
* Fixed indoorsrwstable.txt reading
* Fixed @monsterbig/@monstersmall not working * Fixed @killmonster2 not working git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1293 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index e49bb178c..0dac4f09c 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -830,9 +830,16 @@ AtCommandType atcommand(struct map_session_data* sd, const int level, const char
*/
static int atkillmonster_sub(struct block_list *bl, va_list ap) {
struct mob_data *md;
+ int flag;
+
+ nullpo_retr(0, ap);
nullpo_retr(0, md=(struct mob_data *)bl);
+ flag = va_arg(ap, int);
- mob_damage(NULL, md, md->hp, 2);
+ if (flag)
+ mob_damage(NULL, md, md->hp, 2);
+ else
+ mob_delete(md);
return 0;
}