1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
This commit is contained in:
DjWarmonger 2013-01-22 09:47:25 +00:00
parent 6232a1b369
commit e5783801af

View File

@ -2043,9 +2043,10 @@ void CBattleInterface::activateStack()
{
stackCanCastSpell = true;
if(randomSpellcaster)
creatureSpellToCast = -1;
else
creatureSpellToCast = curInt->cb->battleGetRandomStackSpell(s, CBattleInfoCallback::RANDOM_AIMED); //faerie dragon can cast only one spell until their next move
creatureSpellToCast = -1; //spell will be set later on cast
creatureSpellToCast = curInt->cb->battleGetRandomStackSpell(s, CBattleInfoCallback::RANDOM_AIMED); //faerie dragon can cast only one spell until their next move
//TODO: what if creature can cast BOTH random genie spell and aimed spell?
}
else
{