Explorar o código

CGameHandler: fixup healing destination

If it contains hex, not unit, server complains.
Add actual unit there.
Konstantin %!s(int64=2) %!d(string=hai) anos
pai
achega
dc7d0297a7
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      server/CGameHandler.cpp

+ 2 - 1
server/CGameHandler.cpp

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