Reset choices on side when executing turn.

This commit is contained in:
Deukhoofd 2019-11-06 18:06:48 +01:00
parent 5fc2bf564a
commit beac87f981
2 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,7 @@ void TurnHandler::ExecuteChoice(const BaseTurnChoice *choice) {
}
switch (choiceKind){
case TurnChoiceKind::Pass: return;
case TurnChoiceKind::Pass: throw NotReachableException();
case TurnChoiceKind::Attack:
return ExecuteAttackChoice(dynamic_cast<const AttackTurnChoice*>(choice));
case TurnChoiceKind::Item:

View File

@ -50,6 +50,7 @@ void Battle::CheckChoicesSetAndRun() {
choices[i] = choice;
i++;
}
side->ResetChoices();
}
TurnOrdering::OrderChoices(choices, _random);
auto choiceQueue = new ChoiceQueue(choices);