Pārlūkot izejas kodu

vcmi: do not block interface on setup spells

Konstantin 2 gadi atpakaļ
vecāks
revīzija
15031d2e16
1 mainītis faili ar 9 papildinājumiem un 4 dzēšanām
  1. 9 4
      client/battle/BattleInterface.cpp

+ 9 - 4
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);