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

Take hero-stats into account for attacking hero-defended entities

Instead of using just the strength of the raw army, the hero-stats are now taking into account for the generation of the danger-map.
This commit is contained in:
Xilmi
2024-07-15 17:30:42 +02:00
parent 48ecbd4cbf
commit e2e3f9e638

View File

@@ -71,6 +71,7 @@ ui64 FuzzyHelper::evaluateDanger(const int3 & tile, const CGHeroInstance * visit
{
objectDanger += evaluateDanger(hero->visitedTown.get());
}
objectDanger *= ai->heroManager->getFightingStrengthCached(hero);
}
if(objectDanger)