mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Fixed #1183
This commit is contained in:
@@ -2043,9 +2043,10 @@ void CBattleInterface::activateStack()
|
||||
{
|
||||
stackCanCastSpell = true;
|
||||
if(randomSpellcaster)
|
||||
creatureSpellToCast = -1;
|
||||
else
|
||||
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
|
||||
{
|
||||
|
Reference in New Issue
Block a user