Przeglądaj źródła

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

Ivan Savenko 6 miesięcy temu
rodzic
commit
b6c341f7c0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      lib/battle/CBattleInfoCallback.cpp

+ 1 - 1
lib/battle/CBattleInfoCallback.cpp

@@ -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)