SMUnlimited / AMAI

Advanced Melee Artificial Intelligence Mod For Warcraft 3
Other
207 stars 34 forks source link

Follow Zepplin job is conflicting with zepplin expansion control #204

Open SMUnlimited opened 10 months ago

SMUnlimited commented 10 months ago

Follow zepplin overrides control of zepplin returning it to follow the hero before it reaches destination with peon.

jzy-chitong56 commented 10 months ago

call BlzGroupRemoveGroupFast(unit_zepplin_move, g) set g = SelectByUnitStandard(g, true) if water_expansion_list_length == 0 or racial_lumber != 0 or not race_no_wood_harvest then call GroupRemoveGuardPositionInstant(g) //water_expansion Transport Harvest peon , AI default Transport Order need use zep , racial_lumber help ELF fix building blockage endif if FirstOfGroup(g) != null then call GroupPointOrderLoc(g, "attack", exist_town[GetRandomInt(0,Max(exist_town_num-1,0))]) endif set follow_zeppelin = null if major_hero != null and UnitAlive(major_hero) then

jzy-chitong56 commented 10 months ago

https://github.com/jzy-chitong56/AMAI/commit/c1a523f708e1ab608a04ef81d170cb7cc2457eb4

take exp,Also needs to be repaired

SMUnlimited commented 10 months ago

Peon was still moving past expa distance so kept getting stuck in a loop which jzy-chitongs fixes attempt to fix. Leaving open for now to see results.

jzy-chitong56 commented 10 months ago

but key should is Follow zepplin job call GroupRemoveGroupAM(unit_zepplin_move, g)