mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Fixed #1183
This commit is contained in:
parent
6232a1b369
commit
e5783801af
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user