1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00

Merge pull request #5014 from Laserlicht/fix_INVINCIBLE

fix INVINCIBLE
This commit is contained in:
Ivan Savenko 2024-12-02 13:14:18 +02:00 committed by GitHub
commit 1fde3e3f09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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