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