1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Merge pull request #5889 from IvanSavenko/bonus_fixes

Fixes for bonus system
This commit is contained in:
Ivan Savenko
2025-07-08 10:05:38 +03:00
committed by GitHub
15 changed files with 521 additions and 407 deletions

View File

@@ -1355,10 +1355,7 @@ CBonusSystemNode & CGHeroInstance::whereShouldBeAttached(CGameState & gs)
if(visitedTown.hasValue())
{
auto town = gs.getTown(visitedTown);
if(isGarrisoned())
return *town;
else
return town->townAndVis;
return town->townAndVis;
}
else
return CArmedInstance::whereShouldBeAttached(gs);