Reset choices on side when executing turn.

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

No files matched your search

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