From b069fc249c86084dd87c13109058b78f2b8e8159 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 16 Mar 2006 21:34:12 +0000 Subject: - @kill_monster/@kill_monster2 won't touch Guardians/Emperium now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5631 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index dad90776f..c6b83011b 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -3633,12 +3633,15 @@ static int atkillmonster_sub(struct block_list *bl, va_list ap) { nullpo_retr(0, md=(struct mob_data *)bl); flag = va_arg(ap, int); + if (md->guardian_data) + return 0; //Do not touch WoE mobs! + if (flag) mob_damage(NULL, md, md->hp, 2); else mob_delete(md); - return 0; + return 1; } void atcommand_killmonster_sub( const int fd, struct map_session_data* sd, const char* message, -- cgit v1.2.3-70-g09d2