|
@@ -546,9 +546,6 @@ void BattleResultProcessor::battleFinalize(const BattleID & battleID, const Batt
|
|
|
resultsApplied.loser = finishingBattle->loser;
|
|
resultsApplied.loser = finishingBattle->loser;
|
|
|
gameHandler->sendAndApply(resultsApplied);
|
|
gameHandler->sendAndApply(resultsApplied);
|
|
|
|
|
|
|
|
- //handle victory/loss of engaged players
|
|
|
|
|
- gameHandler->checkVictoryLossConditions({finishingBattle->loser, finishingBattle->victor});
|
|
|
|
|
-
|
|
|
|
|
// Remove beaten hero
|
|
// Remove beaten hero
|
|
|
if(loserHero)
|
|
if(loserHero)
|
|
|
{
|
|
{
|
|
@@ -564,6 +561,9 @@ void BattleResultProcessor::battleFinalize(const BattleID & battleID, const Batt
|
|
|
gameHandler->heroPool->onHeroEscaped(finishingBattle->victor, winnerHero);
|
|
gameHandler->heroPool->onHeroEscaped(finishingBattle->victor, winnerHero);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ //handle victory/loss of engaged players
|
|
|
|
|
+ gameHandler->checkVictoryLossConditions({finishingBattle->loser, finishingBattle->victor});
|
|
|
|
|
+
|
|
|
if (result.result == EBattleResult::SURRENDER)
|
|
if (result.result == EBattleResult::SURRENDER)
|
|
|
{
|
|
{
|
|
|
gameHandler->statistics->accumulatedValues[finishingBattle->loser].numHeroSurrendered++;
|
|
gameHandler->statistics->accumulatedValues[finishingBattle->loser].numHeroSurrendered++;
|