summaryrefslogtreecommitdiff
path: root/jouer.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-10 00:14:19 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-10 00:14:19 +0100
commit30842cc79c0a3e3566e9da61f2499fa1342c6d52 (patch)
treedfe75cbb35d217389ae2c8ec8dfea52f7c50c20d /jouer.c
parentc870c8f03ffc7b78bca72dc9d7de7fd5305cf4f2 (diff)
added "Defend" action
physical and magical damages are divided by 2 when a character is on defensive state. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'jouer.c')
-rw-r--r--jouer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/jouer.c b/jouer.c
index 6d230f9..a5f20ad 100644
--- a/jouer.c
+++ b/jouer.c
@@ -290,6 +290,8 @@ enum action_state_t dig_entry(const struct entry_t *entries, int cnt_entries, st
static enum action_state_t character_play_turn(struct action_params_t *params)
{
+ params->src->defensive = false;
+
if (!params->src->team->cpu) {
return dig_entry(action_entries_g, countof(action_entries_g), params);
}