Skip to content

Commit

Permalink
Fix last captain coordinate not refreshed on unit attack #462
Browse files Browse the repository at this point in the history
  • Loading branch information
SMUnlimited committed Dec 5, 2024
1 parent ababa50 commit 2723163
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common.eai
Original file line number Diff line number Diff line change
Expand Up @@ -12147,6 +12147,9 @@ function CommonSleepUntilTargetDeadAM takes unit target, boolean iscreeping, boo
local unit ally_target = null
//local group g = null

set lastcaptainx = GetUnitX(target)
set lastcaptainy = GetUnitY(target)

loop
//call Trace("SleepExitThreat:" + B2S(town_threat_break and town_threatened and not desperation_assault))
exitwhen town_threat_break and town_threatened and not desperation_assault
Expand Down

0 comments on commit 2723163

Please sign in to comment.