Explorar o código

#3003 - fix hypnotize

Andrii Danylchenko %!s(int64=2) %!d(string=hai) anos
pai
achega
3b27e07385
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/battle/BattleActionsController.cpp

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