1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

vcmi: do not block interface on setup spells

This commit is contained in:
Konstantin 2023-04-13 01:06:36 +03:00
parent cb83a9371d
commit 15031d2e16

View File

@ -335,12 +335,17 @@ void BattleInterface::battleFinished(const BattleResult& br, QueryID queryID)
}
void BattleInterface::spellCast(const BattleSpellCast * sc)
{
// 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();
}
CCS->curh->set(Cursor::Combat::BLOCKED);