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

CGameHandler: fixup healing destination

If it contains hex, not unit, server complains.
Add actual unit there.
This commit is contained in:
Konstantin 2023-04-06 00:21:21 +03:00
parent a0de223901
commit dc7d0297a7

View File

@ -4898,8 +4898,9 @@ bool CGameHandler::makeBattleAction(BattleAction &ba)
{
const CSpell * spell = SpellID(healerAbility->subtype).toSpell();
spells::BattleCast parameters(gs->curB, healer, spells::Mode::SPELL_LIKE_ATTACK, spell); //We can heal infinitely by first aid tent
auto dest = battle::Destination(destStack, target.at(0).hexValue);
parameters.setSpellLevel(0);
parameters.cast(spellEnv, target);
parameters.cast(spellEnv, {dest});
}
break;
}