From 300d4ab86775da7257ff386f348f922bb27e5e69 Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 24 May 2016 09:11:07 +0100 Subject: [PATCH] Don't update surrender condition if killed by non-player side. --- src/battle/fighters.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/battle/fighters.c b/src/battle/fighters.c index 07a6063..46177a6 100644 --- a/src/battle/fighters.c +++ b/src/battle/fighters.c @@ -346,7 +346,8 @@ void doFighter(void) updateCondition(self->name, TT_DESTROY); updateCondition(self->groupName, TT_DESTROY); - if (self->flags & EF_SURRENDERED) + /* don't fire if the opposing side is responsible */ + if (self->flags & EF_SURRENDERED && self->killedBy->side == player->side) { updateCondition("SURRENDERED", TT_DESTROY); }