1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Fix turn ending

This commit is contained in:
Ivan Savenko
2023-08-23 18:46:30 +03:00
parent c4bc6840ea
commit d83aa828f6
8 changed files with 43 additions and 22 deletions

View File

@@ -40,7 +40,7 @@ void ApplyGhNetPackVisitor::visitEndTurn(EndTurn & pack)
if (!gh.hasPlayerAt(pack.player, pack.c))
gh.throwAndComplain(&pack, "No such pack.player!");
result = gh.turnOrder->onPlayerEndsTurn(pack.player);
result = gh.turnOrder->onPlayerEndsTurn(pack.player, PlayerTurnEndReason::CLIENT_REQUEST);
}
void ApplyGhNetPackVisitor::visitDismissHero(DismissHero & pack)