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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user