mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-24 03:47:18 +02:00
fix INVINCIBLE
This commit is contained in:
parent
d4b2ec5b0b
commit
1960d66971
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user