1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

prism attack fix

This commit is contained in:
Laserlicht 2024-11-23 02:10:01 +01:00
parent a4417f3fc5
commit 3c4064e09d

View File

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