mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-10 22:31:40 +02:00
prism attack fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user