From 30842cc79c0a3e3566e9da61f2499fa1342c6d52 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sat, 10 Jan 2015 00:14:19 +0100 Subject: added "Defend" action physical and magical damages are divided by 2 when a character is on defensive state. Signed-off-by: Olivier Gayot --- jouer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'jouer.c') 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); } -- cgit v1.2.3