From 3b27e07385bb98435887dc1ac85d537df51634ba Mon Sep 17 00:00:00 2001 From: Andrii Danylchenko Date: Fri, 3 Nov 2023 13:50:16 +0200 Subject: [PATCH] #3003 - fix hypnotize --- client/battle/BattleActionsController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/battle/BattleActionsController.cpp b/client/battle/BattleActionsController.cpp index 7e476340c..f3adbe037 100644 --- a/client/battle/BattleActionsController.cpp +++ b/client/battle/BattleActionsController.cpp @@ -905,7 +905,7 @@ void BattleActionsController::tryActivateStackSpellcasting(const CStack *casterS const spells::Caster * BattleActionsController::getCurrentSpellcaster() const { if (heroSpellToCast) - return owner.getActiveHero(); + return owner.currentHero(); else return owner.stacksController->getActiveStack(); }