SMUnlimited / AMAI

Advanced Melee Artificial Intelligence Mod For Warcraft 3
Other
192 stars 31 forks source link

BUILD_EXPANSION.eai check CheckDoubleExpansionsClaimedInArea #321

Closed jzy-chitong56 closed 1 month ago

jzy-chitong56 commented 1 month ago

CheckDoubleExpansionsClaimedInArea The third parameter is the build command, but use d > race_max_expa_mine_distance , To be precise, regardless of distance, it should be true, but if distance must be determined, it should be less than d < race_max_expa_mine_distance

    elseif not race_uses_mine_expansion and d < 190 * 30 then
        call Trace("Build Expansion JOB Retry Check")
        call CheckDoubleExpansionsClaimedInArea(GetUnitX(expansion), GetUnitY(expansion), d > race_max_expa_mine_distance)