Don't crash when trying to protect a harvester against a dead (not in world) enemy
This commit is contained in:
@@ -61,8 +61,8 @@ ProtectHarvester = function(unit)
|
||||
|
||||
local Guards = SetupAttackGroup()
|
||||
Utils.Do(Guards, function(unit)
|
||||
if attacker.Location then
|
||||
unit.AttackMove(attacker.Location)
|
||||
if not self.IsDead then
|
||||
unit.AttackMove(self.Location)
|
||||
end
|
||||
IdleHunt(unit)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user