mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-17 11:56:46 +02:00
commit
1fde3e3f09
@ -259,7 +259,7 @@ std::vector<const CStack *> BattleSpellMechanics::getAffectedStacks(const Target
|
|||||||
|
|
||||||
for(const Destination & dest : all)
|
for(const Destination & dest : all)
|
||||||
{
|
{
|
||||||
if(dest.unitValue)
|
if(dest.unitValue && !dest.unitValue->hasBonusOfType(BonusType::INVINCIBLE))
|
||||||
{
|
{
|
||||||
//FIXME: remove and return battle::Unit
|
//FIXME: remove and return battle::Unit
|
||||||
stacks.insert(battle()->battleGetStackByID(dest.unitValue->unitId(), false));
|
stacks.insert(battle()->battleGetStackByID(dest.unitValue->unitId(), false));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user