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:
parent
a0de223901
commit
05cc7fbf67
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user