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

#3003 - fix hypnotize

This commit is contained in:
Andrii Danylchenko 2023-11-03 13:50:16 +02:00
parent 0376873cb3
commit 3b27e07385

View File

@ -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();
}