1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +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; stackCanCastSpell = true;
if(randomSpellcaster) if(randomSpellcaster)
creatureSpellToCast = -1; creatureSpellToCast = -1; //spell will be set later on cast
else
creatureSpellToCast = curInt->cb->battleGetRandomStackSpell(s, CBattleInfoCallback::RANDOM_AIMED); //faerie dragon can cast only one spell until their next move 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 else
{ {