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:
commit
72fcf4473a
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user