Explorar o código

Show message on cancelling spell in combat

Ivan Savenko %!s(int64=2) %!d(string=hai) anos
pai
achega
d7fb2bcf83
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      client/battle/BattleActionsController.cpp

+ 2 - 0
client/battle/BattleActionsController.cpp

@@ -24,6 +24,7 @@
 #include "../gui/CIntObject.h"
 #include "../gui/WindowHandler.h"
 #include "../windows/CCreatureWindow.h"
+#include "../windows/InfoWindows.h"
 
 #include "../../CCallback.h"
 #include "../../lib/CConfigHandler.h"
@@ -1003,6 +1004,7 @@ void BattleActionsController::onHexRightClicked(BattleHex clickedHex)
 	if (spellcastingModeActive() || isCurrentStackInSpellcastMode)
 	{
 		endCastingSpell();
+		CRClickPopup::createAndPush(CGI->generaltexth->translate("core.genrltxt.731")); // spell cancelled
 		return;
 	}