Merge pull request #8349 from abcdefg30/protectharvester

Fix a potential crash in allies05a
This commit is contained in:
Matthias Mailänder
2015-06-03 07:21:57 +02:00

View File

@@ -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)