From e1deff089d582248e245d1d3eb6faabe5b2ffc96 Mon Sep 17 00:00:00 2001 From: AlexVinS Date: Sat, 11 Apr 2015 10:55:03 +0300 Subject: [PATCH] Actually use ANY_CREATURE possible action * this fixes mantiss 0002140 --- client/battle/CBattleInterface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/battle/CBattleInterface.cpp b/client/battle/CBattleInterface.cpp index d9ee2d94d..be9cd1736 100644 --- a/client/battle/CBattleInterface.cpp +++ b/client/battle/CBattleInterface.cpp @@ -2177,6 +2177,10 @@ void CBattleInterface::handleHex(BattleHex myNumber, int eventType) legalAction = true; } break; + case ANY_CREATURE: + if (shere && shere->alive() && isCastingPossibleHere (sactive, shere, myNumber)) + legalAction = true; + break; case HOSTILE_CREATURE_SPELL: if (shere && shere->alive() && !ourStack && isCastingPossibleHere (sactive, shere, myNumber)) legalAction = true; @@ -2372,6 +2376,7 @@ void CBattleInterface::handleHex(BattleHex myNumber, int eventType) break; case HOSTILE_CREATURE_SPELL: case FRIENDLY_CREATURE_SPELL: + case ANY_CREATURE: sp = CGI->spellh->objects[creatureCasting ? creatureSpellToCast : spellToCast->additionalInfo]; //necessary if creature has random Genie spell at same time consoleMsg = boost::str(boost::format(CGI->generaltexth->allTexts[27]) % sp->name % shere->getName()); //Cast %s on %s switch (sp->id) @@ -2442,6 +2447,7 @@ void CBattleInterface::handleHex(BattleHex myNumber, int eventType) { switch (illegalAction) { + case ANY_CREATURE: case HOSTILE_CREATURE_SPELL: case FRIENDLY_CREATURE_SPELL: case RANDOM_GENIE_SPELL: