1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Merge pull request #3140 from vcmi/fix-3003

#3003 - fix hypnotize
This commit is contained in:
Andrii Danylchenko
2023-11-04 10:50:58 +02:00
committed by GitHub

View File

@@ -905,7 +905,7 @@ void BattleActionsController::tryActivateStackSpellcasting(const CStack *casterS
const spells::Caster * BattleActionsController::getCurrentSpellcaster() const const spells::Caster * BattleActionsController::getCurrentSpellcaster() const
{ {
if (heroSpellToCast) if (heroSpellToCast)
return owner.getActiveHero(); return owner.currentHero();
else else
return owner.stacksController->getActiveStack(); return owner.stacksController->getActiveStack();
} }