From 0a8b81b2c4a25fa4eea9e001555f5a0e34c61bc1 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Fri, 22 Dec 2023 22:46:09 +0200 Subject: [PATCH] Fix deactivation of current stack if player does not acts in time --- client/battle/BattleStacksController.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/battle/BattleStacksController.cpp b/client/battle/BattleStacksController.cpp index 85454fb83..afdd0b124 100644 --- a/client/battle/BattleStacksController.cpp +++ b/client/battle/BattleStacksController.cpp @@ -691,6 +691,8 @@ void BattleStacksController::endAction(const BattleAction & action) void BattleStacksController::startAction(const BattleAction & action) { + // if timer run out and we did not act in time - deactivate current stack + setActiveStack(nullptr); removeExpiredColorFilters(); }