Przeglądaj źródła

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

CGameHandler: fixup healing destination
Ivan Savenko 2 lat temu
rodzic
commit
f3aed901fd
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      server/CGameHandler.cpp

+ 2 - 1
server/CGameHandler.cpp

@@ -4922,8 +4922,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;
 		}