From 2df9559b94ce9acb7e8439e1c39bce4eb87e35ee Mon Sep 17 00:00:00 2001 From: Fate Date: Tue, 22 Sep 2009 23:57:56 +0000 Subject: Spellcasting disallowed while @hide is active --- src/map/magic.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map') 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, -- cgit v1.2.3-70-g09d2