1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-24 03:47:18 +02:00

fix INVINCIBLE

This commit is contained in:
Laserlicht 2024-12-01 12:25:27 +01:00
parent d4b2ec5b0b
commit 1960d66971

View File

@ -259,7 +259,7 @@ std::vector<const CStack *> BattleSpellMechanics::getAffectedStacks(const Target
for(const Destination & dest : all)
{
if(dest.unitValue)
if(dest.unitValue && !dest.unitValue->hasBonusOfType(BonusType::INVINCIBLE))
{
//FIXME: remove and return battle::Unit
stacks.insert(battle()->battleGetStackByID(dest.unitValue->unitId(), false));