浏览代码

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

Ivan Savenko 1 年之前
父节点
当前提交
0a8b81b2c4
共有 1 个文件被更改,包括 2 次插入0 次删除
  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();
 }