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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user