summaryrefslogtreecommitdiff
path: root/src/map/magic-interpreter.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2008-10-26 20:40:30 +0000
committerJared Adams <jaxad0127@gmail.com>2008-10-26 20:40:30 +0000
commit90735f447e12393f3d89b8c053bd4d8c8a707fa2 (patch)
treedc6757d0b88d3f7ba9f7f545aba437983bc0255b /src/map/magic-interpreter.h
parent7f21ec064e78bf8d06ae341d1d61e12516970719 (diff)
downloadtmwa-90735f447e12393f3d89b8c053bd4d8c8a707fa2.tar.gz
tmwa-90735f447e12393f3d89b8c053bd4d8c8a707fa2.tar.bz2
tmwa-90735f447e12393f3d89b8c053bd4d8c8a707fa2.tar.xz
tmwa-90735f447e12393f3d89b8c053bd4d8c8a707fa2.zip
Commit Mantis 509
Diffstat (limited to 'src/map/magic-interpreter.h')
-rw-r--r--src/map/magic-interpreter.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/magic-interpreter.h b/src/map/magic-interpreter.h
index 94c32bc..9fc6308 100644
--- a/src/map/magic-interpreter.h
+++ b/src/map/magic-interpreter.h
@@ -377,8 +377,11 @@ spell_create_env(magic_conf_t *conf, spell_t *spell, character_t *caster, int sp
void
magic_free_env(env_t *env);
+/**
+ * near_miss is set to nonzero iff the spell only failed due to ephemereal issues (spell delay in effect, out of mana, out of components)
+ */
effect_set_t *
-spell_trigger(spell_t *spell, character_t *caster, env_t *env);
+spell_trigger(spell_t *spell, character_t *caster, env_t *env, int *near_miss);
invocation_t *
spell_instantiate(effect_set_t *effect, env_t *env);