From 15031d2e16db0e70cd039d345fedf3575cb984ac Mon Sep 17 00:00:00 2001 From: Konstantin Date: Thu, 13 Apr 2023 01:06:36 +0300 Subject: [PATCH] vcmi: do not block interface on setup spells --- client/battle/BattleInterface.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/client/battle/BattleInterface.cpp b/client/battle/BattleInterface.cpp index 0397956cb..1137b31fb 100644 --- a/client/battle/BattleInterface.cpp +++ b/client/battle/BattleInterface.cpp @@ -336,11 +336,16 @@ void BattleInterface::battleFinished(const BattleResult& br, QueryID queryID) void BattleInterface::spellCast(const BattleSpellCast * sc) { - windowObject->blockUI(true); + // Do not deactivate anything in tactics mode + // This is battlefield setup spells + if(!tacticsMode) + { + windowObject->blockUI(true); - // Disable current active stack duing the cast - // Store the current activeStack to stackToActivate - stacksController->deactivateStack(); + // Disable current active stack duing the cast + // Store the current activeStack to stackToActivate + stacksController->deactivateStack(); + } CCS->curh->set(Cursor::Combat::BLOCKED);