Merge pull request #8349 from abcdefg30/protectharvester
Fix a potential crash in allies05a
This commit is contained in:
@@ -61,8 +61,8 @@ ProtectHarvester = function(unit)
|
|||||||
|
|
||||||
local Guards = SetupAttackGroup()
|
local Guards = SetupAttackGroup()
|
||||||
Utils.Do(Guards, function(unit)
|
Utils.Do(Guards, function(unit)
|
||||||
if attacker.Location then
|
if not self.IsDead then
|
||||||
unit.AttackMove(attacker.Location)
|
unit.AttackMove(self.Location)
|
||||||
end
|
end
|
||||||
IdleHunt(unit)
|
IdleHunt(unit)
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user