Hooks
static bool BeforeAttackCityPathDest(int iToX, int iToY, const void* pointer, CvAStar* finder, int& result);static void AfterAttackCityPathDest(int iToX, int iToY, const void* pointer, CvAStar* finder, int& result);static int ReplaceAttackCityPathDest(int (*original)(int, int, const void*, CvAStar*), int iToX, int iToY, const void* pointer, CvAStar* finder);CivRegisterBefore<CivHooks::AttackCityPathDest>(host, &BeforeAttackCityPathDest);CivRegisterAfter<CivHooks::AttackCityPathDest>(host, &AfterAttackCityPathDest);CivRegisterReplace<CivHooks::AttackCityPathDest>(host, &ReplaceAttackCityPathDest);
Code
3388/// Destination is valid if there is a city there3389int AttackCityPathDest(int iToX, int iToY, const void* pointer, CvAStar* finder)3390{3391 return AttackPathDestEval(iToX, iToY, pointer, finder, false, true);3392}