1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-13 01:20:34 +02:00

- Hopefully fixed possibleActions for every case

- better algorithm for looting artifacts, yet buggy
This commit is contained in:
DjWarmonger
2012-05-01 13:56:32 +00:00
parent f767216b2e
commit 5d311fb3ed
2 changed files with 49 additions and 49 deletions

View File

@ -1387,6 +1387,8 @@ void CBattleInterface::newRound(int number)
void CBattleInterface::giveCommand(ui8 action, BattleHex tile, ui32 stackID, si32 additional, si32 selected)
{
possibleActions.clear(); //no checks allowed before action is resolved
const CStack *stack = curInt->cb->battleGetStackByID(stackID);
if(!stack && action != BattleAction::HERO_SPELL && action != BattleAction::RETREAT && action != BattleAction::SURRENDER)
{