summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conf/magic.conf.template6
1 files changed, 4 insertions, 2 deletions
diff --git a/conf/magic.conf.template b/conf/magic.conf.template
index ad550133..707a771c 100644
--- a/conf/magic.conf.template
+++ b/conf/magic.conf.template
@@ -22,7 +22,7 @@ CONST ELT_HOLY = 7
CONST ELT_GHOST = 8
CONST ELT_UNDEAD = 9
-# Schools of magic
+# Status effects
CONST SC_POISON = 132
CONST SC_SHEARED = 194 # This is the same as SC_HIDE, since mobs can't hide and shearing is only used for mobs. Feel free to fix!
CONST SC_HIDE = 194
@@ -32,6 +32,8 @@ CONST SC_MBARRIER = 197
CONST SC_HASTE = 198
CONST SC_PHYS_SHIELD = 199
+CONST SO_GMINVISIBLE = 4096
+
# Special effects
CONST SFX_DEFAULT = 10
CONST SFX_SUMMON_START = 21
@@ -871,7 +873,7 @@ SPELL detect-players : "#G10" =
FOREACH PC target IN rbox(location(caster), spellpower / 2)
DO IF ((target <> caster)
&& not (running_status_update(pc(target), SC_HIDE))
- && not (is_gm_invisible(target)))
+ && not (status_option(target, SO_GMINVISIBLE)))
THEN (IF message <> ""
THEN message = message + ", ";
message = message + name_of (target);