summaryrefslogtreecommitdiff
path: root/src/map/magic.c
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2009-09-30 13:53:33 -0400
committerMadCamel <madcamel@gmail.com>2009-09-30 13:53:33 -0400
commit3fc3d83aa0be31e6d51afac54ff76b447f99f711 (patch)
tree2deac15b3e34382f11a27090e3f1a8ef3049618b /src/map/magic.c
parent5967577d8bf92a9912cd153b20597f0d13a19456 (diff)
parent48d96bc41a4791b6cb0bc2cf514a6cc1f06c4dd8 (diff)
downloadtmwa-3fc3d83aa0be31e6d51afac54ff76b447f99f711.tar.gz
tmwa-3fc3d83aa0be31e6d51afac54ff76b447f99f711.tar.bz2
tmwa-3fc3d83aa0be31e6d51afac54ff76b447f99f711.tar.xz
tmwa-3fc3d83aa0be31e6d51afac54ff76b447f99f711.zip
Merge branch 'master' of git://gitorious.org/tmw-eathena/mainline
Diffstat (limited to 'src/map/magic.c')
-rw-r--r--src/map/magic.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/magic.c b/src/map/magic.c
index 674da89..f70d9a6 100644
--- a/src/map/magic.c
+++ b/src/map/magic.c
@@ -92,12 +92,12 @@ 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,
- spell->name,
- effects? "SUCCESS" : "FAILURE");
-
+ MAP_LOG_PC(caster, "CAST %s %s",
+ spell->name,
+ effects? "SUCCESS" : "FAILURE");
if (effects) {
invocation_t *invocation = spell_instantiate(effects, env);