AMAI
AMAI copied to clipboard
BUILD_EXPANSION still seem to be issues
https://github.com/SMUnlimited/AMAI/blob/00397f5990c57252ef3b727e52ab51c9b7f442d4/Jobs/BUILD_EXPANSION.eai#L23
if GetUnitCurrentOrder(u) == old_id[racial_expansion] then
call Trace("Build Expansion JOB has order")
if CheckDoubleExpansionsClaimedInArea(GetUnitX(expansion), GetUnitY(expansion), true) then
when DistanceBetweenUnits(u, expansion) < race_max_expa_mine_distance
, Buildings may start construction , isBuildCommand send true , claimedMines an additional 1 may be added
should
CheckDoubleExpansionsClaimedInArea(GetUnitX(expansion), GetUnitY(expansion), d > race_max_expa_mine_distance)
what this ?
GetUnitCurrentOrder(u) != OrderId("humanbuild")
if (not double_own_present and not double_expansion_ally_present and double_expansion_enemy_present and GetLocationNonCreepStrength(GetUnitX(u), GetUnitY(u), race_max_expa_mine_distance) == 0) then
why double_expansion_enemy_present
will build?? maybe is not double_expansion_enemy_present
change https://github.com/jzy-chitong56/AMAI/commit/c2297709303e747d523ff6dc5420425a1500789b