Skip to content

Commit

Permalink
firebeetles don't auto-acquire units while moving
Browse files Browse the repository at this point in the history
  • Loading branch information
clyfordv committed Oct 17, 2023
1 parent 4eb03d1 commit 0d2ceec
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions units/XRL0302/XRL0302_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ local DeathWeaponKamikaze = ClassWeapon(Weapon) {
end,

OnMotionHorzEventChange = function(self, new, old)
LOG('OnMotionHorzEventChange')
LOG('new: '..new)
LOG('old: '..old)
if (new == 'Stopping') then
self:SetBusy(false)
if new == 'Cruise' then
self.unit:SetBusy(true)
elseif new == 'Stopping' then
self.unit:SetBusy(false)
end
end,
}
Expand Down

0 comments on commit 0d2ceec

Please sign in to comment.