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 --- menuchoixpersos.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'menuchoixpersos.c') diff --git a/menuchoixpersos.c b/menuchoixpersos.c index 3eb77a9..f83fb16 100644 --- a/menuchoixpersos.c +++ b/menuchoixpersos.c @@ -21,6 +21,8 @@ static void init_team_players(struct team_t *team, bool left, chr->class_ = classes[i]; chr->alive = true; + chr->defensive = false; + switch (chr->class_) { case CLASS_PALADIN: chr->def_surf = surfaces->Ppaladin; -- cgit v1.2.3