소스 검색

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.
Xilmi 1 년 전
부모
커밋
e2e3f9e638
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      AI/Nullkiller/Engine/FuzzyHelper.cpp

+ 1 - 0
AI/Nullkiller/Engine/FuzzyHelper.cpp

@@ -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)