From 82ff3a436ba443d297ab140a89346375d2c5e26d Mon Sep 17 00:00:00 2001 From: valaris Date: Mon, 22 Nov 2004 20:29:21 +0000 Subject: Changed monster_ignore_gm option to a level value. (accounts greater than or equal to this setting won't be attacked by aggressives.) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@324 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index b3a2d83c0..5a0249a6c 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1105,9 +1105,9 @@ int mob_can_reach(struct mob_data *md,struct block_list *bl,int range) } //========== guildcastle guardian no search eof============== - if(bl && bl->type == BL_PC && battle_config.monsters_ignore_gm==1) { // option to have monsters ignore GMs [Valaris] + if(bl && bl->type == BL_PC && battle_config.monsters_ignore_gm) { // option to have monsters ignore GMs [Valaris] struct map_session_data *sd; - if((sd=(struct map_session_data *)bl) != NULL && pc_isGM(sd)) + if((sd=(struct map_session_data *)bl) != NULL && pc_isGM(sd) >= battle_config.monsters_ignore_gm) return 0; } -- cgit v1.2.3-70-g09d2