Hooks
static bool BeforeAttackFortifiedPathDest(int iToX, int iToY, const void* pointer, CvAStar* finder, int& result);static void AfterAttackFortifiedPathDest(int iToX, int iToY, const void* pointer, CvAStar* finder, int& result);static int ReplaceAttackFortifiedPathDest(int (*original)(int, int, const void*, CvAStar*), int iToX, int iToY, const void* pointer, CvAStar* finder);CivRegisterBefore<CivHooks::AttackFortifiedPathDest>(host, &BeforeAttackFortifiedPathDest);CivRegisterAfter<CivHooks::AttackFortifiedPathDest>(host, &AfterAttackFortifiedPathDest);CivRegisterReplace<CivHooks::AttackFortifiedPathDest>(host, &ReplaceAttackFortifiedPathDest);
Code
3381/// Destination is valid if there is a fortified unit there3382int AttackFortifiedPathDest(int iToX, int iToY, const void* pointer, CvAStar* finder)3383{3384 return AttackPathDestEval(iToX, iToY, pointer, finder, true, false);3385}