1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

First step

This commit is contained in:
nordsoft
2022-11-03 21:38:49 +04:00
parent ae1d2c50e2
commit 219a282916
22 changed files with 97 additions and 32 deletions

View File

@@ -818,6 +818,10 @@ void CGameHandler::endBattle(int3 tile, const CGHeroInstance * heroAttacker, con
}
}
}
auto battleDialogQuery = std::make_shared<CDialogQuery>(this);
battleResult.data->queryID = battleDialogQuery->queryID;
queries.addQuery(battleDialogQuery);
sendAndApply(battleResult.data); //after this point casualties objects are destroyed
if (arts.size()) //display loot