Open SMUnlimited opened 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
https://github.com/jzy-chitong56/AMAI/commit/c1a523f708e1ab608a04ef81d170cb7cc2457eb4
take exp,Also needs to be repaired
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.
but key should is Follow zepplin job call GroupRemoveGroupAM(unit_zepplin_move, g)
Follow zepplin overrides control of zepplin returning it to follow the hero before it reaches destination with peon.