mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Partially fix 1416 tavern hero rotation
This commit is contained in:
parent
9dfef2186d
commit
99992599db
@ -734,7 +734,7 @@ void CGameHandler::battleAfterLevelUp( const BattleResult &result )
|
|||||||
sah.army[0].setCreature(SlotID(0), finishingBattle->loserHero->type->initialArmy.at(0).creature, 1);
|
sah.army[0].setCreature(SlotID(0), finishingBattle->loserHero->type->initialArmy.at(0).creature, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(const CGHeroInstance *another = getPlayer(finishingBattle->loser)->availableHeroes.at(1))
|
if(const CGHeroInstance *another = getPlayer(finishingBattle->loser)->availableHeroes.at(0))
|
||||||
sah.hid[1] = another->subID;
|
sah.hid[1] = another->subID;
|
||||||
else
|
else
|
||||||
sah.hid[1] = -1;
|
sah.hid[1] = -1;
|
||||||
@ -752,7 +752,7 @@ void CGameHandler::battleAfterLevelUp( const BattleResult &result )
|
|||||||
sah.army[0].clear();
|
sah.army[0].clear();
|
||||||
sah.army[0].setCreature(SlotID(0), finishingBattle->winnerHero->type->initialArmy.at(0).creature, 1);
|
sah.army[0].setCreature(SlotID(0), finishingBattle->winnerHero->type->initialArmy.at(0).creature, 1);
|
||||||
|
|
||||||
if(const CGHeroInstance *another = getPlayer(finishingBattle->victor)->availableHeroes.at(1))
|
if(const CGHeroInstance *another = getPlayer(finishingBattle->victor)->availableHeroes.at(0))
|
||||||
sah.hid[1] = another->subID;
|
sah.hid[1] = another->subID;
|
||||||
else
|
else
|
||||||
sah.hid[1] = -1;
|
sah.hid[1] = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user