mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
Refactoring InfoAboutHero + GetHeroInfo
This commit is contained in:
@ -216,7 +216,7 @@ void CBattleHero::clickRight(tribool down, bool previousState)
|
||||
if (down && myOwner->myTurn)
|
||||
{
|
||||
if (myHero != nullptr)
|
||||
targetHero.initFromHero(myHero, true);
|
||||
targetHero.initFromHero(myHero, InfoAboutHero::EInfoLevel::INBATTLE);
|
||||
else
|
||||
targetHero = myOwner->enemyHero();
|
||||
|
||||
|
Reference in New Issue
Block a user