mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Fixed #1015.
This commit is contained in:
@ -3013,6 +3013,7 @@ void CBattleInterface::handleHex(BattleHex myNumber, int eventType)
|
|||||||
case RANDOM_GENIE_SPELL: //we assume that teleport / sacrifice will never be avaliable as random spell
|
case RANDOM_GENIE_SPELL: //we assume that teleport / sacrifice will never be avaliable as random spell
|
||||||
sp = NULL;
|
sp = NULL;
|
||||||
consoleMsg = boost::str(boost::format(CGI->generaltexth->allTexts[301]) % shere->getName()); //Cast a spell on %
|
consoleMsg = boost::str(boost::format(CGI->generaltexth->allTexts[301]) % shere->getName()); //Cast a spell on %
|
||||||
|
creatureCasting = true;
|
||||||
isCastingPossible = true;
|
isCastingPossible = true;
|
||||||
break;
|
break;
|
||||||
case TELEPORT:
|
case TELEPORT:
|
||||||
@ -3136,6 +3137,7 @@ void CBattleInterface::handleHex(BattleHex myNumber, int eventType)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
assert (sp);
|
||||||
switch (sp->id)
|
switch (sp->id)
|
||||||
{
|
{
|
||||||
case Spells::SACRIFICE:
|
case Spells::SACRIFICE:
|
||||||
|
Reference in New Issue
Block a user