1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

GGameHandler: fix spell-like attack targeting

This commit is contained in:
Konstantin 2023-04-01 01:06:26 +03:00
parent a0de223901
commit 05cc7fbf67

View File

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