1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Merge pull request #1883 from rilian-la-te/fixup-healing-destination

CGameHandler: fixup healing destination
This commit is contained in:
Ivan Savenko
2023-04-07 12:42:52 +03:00
committed by GitHub

View File

@@ -4922,8 +4922,9 @@ bool CGameHandler::makeBattleAction(BattleAction &ba)
{ {
const CSpell * spell = SpellID(healerAbility->subtype).toSpell(); 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 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.setSpellLevel(0);
parameters.cast(spellEnv, target); parameters.cast(spellEnv, {dest});
} }
break; break;
} }