1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-11 11:31:52 +02:00

Merge pull request #4962 from Laserlicht/prism_breath_fix

prism attack fix
This commit is contained in:
Ivan Savenko 2024-11-25 13:41:57 +02:00 committed by GitHub
commit 72fcf4473a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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