mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +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)
|
||||
if(!strongestHero || hero->exp > strongestHero->exp)
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user