1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

Likely fix for inability to shoot if there was adjacent cloned unit

This commit is contained in:
Ivan Savenko
2025-04-11 00:35:11 +03:00
parent d150b3907d
commit b6c341f7c0

View File

@@ -1719,7 +1719,7 @@ battle::Units CBattleInfoCallback::battleAdjacentUnits(const battle::Unit * unit
const auto & units = battleGetUnitsIf([&hexes](const battle::Unit * testedUnit)
{
if (testedUnit->isDead())
if (!testedUnit->alive())
return false;
const auto & unitHexes = testedUnit->getHexes();
for (const auto & hex : unitHexes)