diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-04-24 13:56:25 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-04-24 14:01:58 -0400 |
commit | 1d40cf4b2cf1120f0b54c6ad9bd850de3dd6b8b9 (patch) | |
tree | 2cfb1a008dd06be35a59a6dd6921eb3034511860 /world/map/npc/magic/level2-detect-players.txt | |
parent | ff15e5753a9566604f308376cc3a53c81b92e9b8 (diff) | |
download | serverdata-1d40cf4b2cf1120f0b54c6ad9bd850de3dd6b8b9.tar.gz serverdata-1d40cf4b2cf1120f0b54c6ad9bd850de3dd6b8b9.tar.bz2 serverdata-1d40cf4b2cf1120f0b54c6ad9bd850de3dd6b8b9.tar.xz serverdata-1d40cf4b2cf1120f0b54c6ad9bd850de3dd6b8b9.zip |
makes spells respect @invisible
Diffstat (limited to 'world/map/npc/magic/level2-detect-players.txt')
-rw-r--r-- | world/map/npc/magic/level2-detect-players.txt | 3 |
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; |