diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-25 10:16:09 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-25 10:16:09 +0000 |
commit | 009e7837dea970aca8f6e2468c9cca310198fc21 (patch) | |
tree | d909b59ccebaa82eb937fe6a7ba45d608e4ab843 /src/map/atcommand.c | |
parent | b003c06063b37f5b9e8e7c156e961ee2bb3067bc (diff) | |
download | hercules-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.c | 9 |
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; } |