get rid of CBattleInfoCallback::battleStackIsImmune
This commit is contained in:
1 parent
ddf98a5920
commit
e4b726151d
5 files changed
+40
-38
No files matched your search
@@ -461,7 +461,7 @@ void CBattleAI::attemptCastingSpell()
|
||||
auto stacksSuffering = cb->getAffectedCreatures(ps.spell, skillLevel, playerID, ps.dest);
|
||||
vstd::erase_if(stacksSuffering, [&](const CStack * s) -> bool
|
||||
{
|
||||
return ESpellCastProblem::OK != cb->battleStackIsImmune(hero, ps.spell, ECastingMode::HERO_CASTING, s);
|
||||
return ESpellCastProblem::OK != ps.spell->isImmuneByStack(hero, ECastingMode::HERO_CASTING, s);
|
||||
});
|
||||
|
||||
if(stacksSuffering.empty())
|
||||
|
||||
Reference in new issue
Block a user