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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user