Don't update surrender condition if killed by non-player side.
This commit is contained in:
parent
b2e22b31b9
commit
300d4ab867
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue