summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/level2-detect-players.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/magic/level2-detect-players.txt')
-rw-r--r--world/map/npc/magic/level2-detect-players.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/world/map/npc/magic/level2-detect-players.txt b/world/map/npc/magic/level2-detect-players.txt
index 9867b700..7335770c 100644
--- a/world/map/npc/magic/level2-detect-players.txt
+++ b/world/map/npc/magic/level2-detect-players.txt
@@ -18,7 +18,8 @@
OnPC:
if (@target_id == BL_ID) end; // do not count the caster
if (sc_check(SC_HIDE, @target_id)) end; // do not count players with anwiltyp
- if (getpvpflag(1, @target_id)) end; // do not count invisible players
+ if (getpvpflag(1, @target_id)) end; // do not count hidden GMs
+ if (get(INVISIBLE, @target_id) == 1) end; // do not count invisible GMs
if (@inwilt$ != "") set @inwilt$, @inwilt$ + ", ";
set @inwilt$, @inwilt$ + strcharinfo(0, @target_id) + if_then_else(@spellpower > 99, "("+get(BaseLevel, @target_id)+")", "");
end;