mirror of
https://github.com/vcmi/vcmi.git
synced 2025-05-31 22:59:54 +02:00
Fix pathfinding reducing tile cost by only 1 point
This commit is contained in:
parent
ff2de1661a
commit
ced98f4698
@ -120,7 +120,7 @@ TurnInfo::TurnInfo(TurnInfoCache * sharedCache, const CGHeroInstance * target, i
|
||||
{
|
||||
static const CSelector selector = Selector::type()(BonusType::ROUGH_TERRAIN_DISCOUNT);
|
||||
const auto & bonuses = sharedCache->roughTerrainDiscount.getBonusList(target, selector);
|
||||
roughTerrainDiscountValue = bonuses->getFirst(daySelector) != nullptr;
|
||||
roughTerrainDiscountValue = bonuses->valOfBonuses(daySelector);
|
||||
}
|
||||
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user