From 8cba9ffd30502686fee172db643c7958f7dd42d1 Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Mon, 20 Jul 2009 17:44:43 +1200 Subject: 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". --- conf/magic.conf.template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'conf') 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); -- cgit v1.2.3-70-g09d2