AMAI icon indicating copy to clipboard operation
AMAI copied to clipboard

Follow Zepplin job is conflicting with zepplin expansion control

Open SMUnlimited opened this issue 8 months ago • 4 comments

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

SMUnlimited avatar Dec 16 '23 23:12 SMUnlimited

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 avatar Dec 17 '23 00:12 jzy-chitong56

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

take exp,Also needs to be repaired

jzy-chitong56 avatar Dec 17 '23 00:12 jzy-chitong56

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.

SMUnlimited avatar Dec 17 '23 13:12 SMUnlimited

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

jzy-chitong56 avatar Dec 17 '23 14:12 jzy-chitong56