Explorar el Código

prism attack fix

Laserlicht hace 11 meses
padre
commit
3c4064e09d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/battle/CBattleInfoCallback.cpp

+ 1 - 1
lib/battle/CBattleInfoCallback.cpp

@@ -1424,7 +1424,7 @@ AttackableTiles CBattleInfoCallback::getPotentiallyAttackableHexes(
 				{
 					//friendly stacks can also be damaged by Dragon Breath
 					const auto * st = battleGetUnitByPos(nextHex, true);
-					if(st != nullptr)
+					if(st != nullptr && st != attacker) //but not unit itself (doublewide + prism attack)
 						at.friendlyCreaturePositions.insert(nextHex);
 				}
 			}