From 05cc7fbf67a58abcb33be255fa7c14cba591745c Mon Sep 17 00:00:00 2001 From: Konstantin Date: Sat, 1 Apr 2023 01:06:26 +0300 Subject: [PATCH] GGameHandler: fix spell-like attack targeting --- server/CGameHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index 18ba84335..2af5ca867 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -1083,7 +1083,7 @@ void CGameHandler::makeAttack(const CStack * attacker, const CStack * defender, auto spell = bat.spellID.toSpell(); battle::Target target; - target.emplace_back(defender); + target.emplace_back(defender, targetHex); spells::BattleCast event(gs->curB, attacker, spells::Mode::SPELL_LIKE_ATTACK, spell); event.setSpellLevel(bonus->val);