mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Fixed #1336
This commit is contained in:
@@ -1637,7 +1637,7 @@ ESpellCastProblem::ESpellCastProblem CBattleInfoCallback::battleCanCastThisSpell
|
|||||||
{
|
{
|
||||||
//check if there are summoned elementals of other type
|
//check if there are summoned elementals of other type
|
||||||
for( const CStack * st : battleAliveStacks())
|
for( const CStack * st : battleAliveStacks())
|
||||||
if(vstd::contains(st->state, EBattleStackState::SUMMONED) && st->getCreature()->idNumber == creIDs[arpos])
|
if(vstd::contains(st->state, EBattleStackState::SUMMONED) && st->getCreature()->idNumber != creIDs[arpos])
|
||||||
return ESpellCastProblem::ANOTHER_ELEMENTAL_SUMMONED;
|
return ESpellCastProblem::ANOTHER_ELEMENTAL_SUMMONED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user