mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-12 10:03:53 +02:00
Fix chain lightning wasting effect on creatures immune to magic
This commit is contained in:
parent
7f8f09c8fa
commit
63b711758f
@ -197,7 +197,7 @@ EffectTarget UnitEffect::transformTargetByChain(const Mechanics * m, const Targe
|
||||
|
||||
auto possibleTargets = m->battle()->battleGetUnitsIf([&](const battle::Unit * unit) -> bool
|
||||
{
|
||||
return isValidTarget(m, unit);
|
||||
return isReceptive(m, unit) && isValidTarget(m, unit);
|
||||
});
|
||||
|
||||
for(const auto *unit : possibleTargets)
|
||||
|
Loading…
Reference in New Issue
Block a user