summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreeyorp <Freeyorp101@NOSPAM@hotmail.com>2009-07-20 17:44:43 +1200
committerDennis Friis <peavey@inspircd.org>2009-07-26 01:24:29 +0200
commit8cba9ffd30502686fee172db643c7958f7dd42d1 (patch)
treeffe3f1a2edc1cbfffd2ea06ce9e83330e71ffe86
parentf31497688ec199d06f04d137ada8879fa1b419cc (diff)
downloadserverdata-8cba9ffd30502686fee172db643c7958f7dd42d1.tar.gz
serverdata-8cba9ffd30502686fee172db643c7958f7dd42d1.tar.bz2
serverdata-8cba9ffd30502686fee172db643c7958f7dd42d1.tar.xz
serverdata-8cba9ffd30502686fee172db643c7958f7dd42d1.zip
Update magic.conf.template to use the new status_option instead of is_gm_invisible
Also fixes the comment for status effects to read "Status effects" for the consts that follow (status effects) rather than "Schools of magic".
-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);