summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/magic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/magic.c b/src/map/magic.c
index 674da89..7567691 100644
--- a/src/map/magic.c
+++ b/src/map/magic.c
@@ -92,6 +92,8 @@ magic_message(character_t *caster,
#ifdef DEBUG
fprintf(stderr, "Found spell `%s', triggered = %d\n", spell_, effects != NULL);
#endif
+ if (caster->status.option & OPTION_HIDE)
+ return 0; // No spellcasting while hidden
MAP_LOG("PC%d %d:%d,%d CAST %s %s",
caster->status.char_id, caster->bl.m, caster->bl.x, caster->bl.y,