瀏覽代碼

#3003 - fix hypnotize

Andrii Danylchenko 1 年之前
父節點
當前提交
3b27e07385
共有 1 個文件被更改,包括 1 次插入1 次删除
  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();
 }