Browse Source

Fix deactivation of current stack if player does not acts in time

Ivan Savenko 1 year ago
parent
commit
0a8b81b2c4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      client/battle/BattleStacksController.cpp

+ 2 - 0
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();
 }