1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00
This commit is contained in:
alexvins
2014-03-17 14:06:32 +00:00
parent 9cac0af7be
commit 8cc586ab7f

View File

@@ -2089,11 +2089,11 @@ std::set<const CStack*> CBattleInfoCallback::getAffectedCreatures(const CSpell *
TStacks stacks = battleGetAllStacks();
vstd::erase_if(stacks,[&](const CStack * stack){
return ti.smart && spell->isNegative() && stack->owner == attackerOwner);
return ti.smart && spell->isNegative() && stack->owner == attackerOwner;
});
vstd::erase_if(stacks,[&](const CStack * stack){
return ti.smart && spell->isPositive() && stack->owner != attackerOwner);
return ti.smart && spell->isPositive() && stack->owner != attackerOwner;
});
vstd::erase_if(stacks,[&](const CStack * stack){