get rid of CBattleInfoCallback::battleStackIsImmune

This commit is contained in:
AlexVinS committed 2014-11-12 09:20:20 +03:00
1 parent ddf98a5920
commit e4b726151d
5 files changed
+40 -38

No files matched your search

+1 -1
View File
@@ -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())