mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
min lvl
This commit is contained in:
parent
4796f46c24
commit
b240da856a
@ -487,7 +487,7 @@ void BattleResultProcessor::endBattleConfirm(const CBattleInfoCallback & battle)
|
|||||||
for(auto & hero : gameHandler->gameState()->getPlayerState(finishingBattle->loser)->heroes)
|
for(auto & hero : gameHandler->gameState()->getPlayerState(finishingBattle->loser)->heroes)
|
||||||
if(!strongestHero || hero->exp > strongestHero->exp)
|
if(!strongestHero || hero->exp > strongestHero->exp)
|
||||||
strongestHero = hero;
|
strongestHero = hero;
|
||||||
if(strongestHero->id == finishingBattle->loserHero->id)
|
if(strongestHero->id == finishingBattle->loserHero->id && strongestHero->level > 5)
|
||||||
gameHandler->gameState()->statistic.accumulatedValues[finishingBattle->victor].lastDefeatedStrongestHeroDay = gameHandler->gameState()->getDate(Date::DAY);
|
gameHandler->gameState()->statistic.accumulatedValues[finishingBattle->victor].lastDefeatedStrongestHeroDay = gameHandler->gameState()->getDate(Date::DAY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user