|
|
@@ -26,6 +26,7 @@
|
|
|
#include "../../lib/entities/artifact/CArtifact.h"
|
|
|
#include "../../lib/entities/artifact/CArtifactFittingSet.h"
|
|
|
#include "../../lib/gameState/CGameState.h"
|
|
|
+#include "../../lib/mapping/CMap.h"
|
|
|
#include "../../lib/mapObjects/CGTownInstance.h"
|
|
|
#include "../../lib/networkPacks/PacksForClientBattle.h"
|
|
|
#include "../../lib/spells/CSpellHandler.h"
|
|
|
@@ -275,7 +276,7 @@ void BattleResultProcessor::endBattle(const CBattleInfoCallback & battle)
|
|
|
bool isDefenderHuman = defenderPlayer && defenderPlayer->isHuman();
|
|
|
bool onlyOnePlayerHuman = isAttackerHuman != isDefenderHuman;
|
|
|
// in battles against neutrals attacker can ask to replay battle manually, additionally in battles against AI player human side can also ask for replay
|
|
|
- if(onlyOnePlayerHuman)
|
|
|
+ if(onlyOnePlayerHuman || gameHandler->gameState().getMap().battleOnly)
|
|
|
{
|
|
|
auto battleDialogQuery = std::make_shared<CBattleDialogQuery>(gameHandler, battle.getBattle(), battleQuery->result);
|
|
|
battleResult->queryID = battleDialogQuery->queryID;
|