From 1d40cf4b2cf1120f0b54c6ad9bd850de3dd6b8b9 Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 24 Apr 2016 13:56:25 -0400 Subject: makes spells respect @invisible --- world/map/npc/magic/level2-detect-players.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'world/map/npc/magic/level2-detect-players.txt') 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; -- cgit v1.2.3-60-g2f50