Fix the campaign AI defending captured buildings

This commit is contained in:
abcdefg30
2018-04-07 00:31:42 +02:00
committed by reaperrr
parent 2e7b8bc30a
commit b8077f1d5d

View File

@@ -122,6 +122,9 @@ end
DefendActor = function(unit, defendingPlayer, defenderCount)
Trigger.OnDamaged(unit, function(self, attacker)
if unit.Owner ~= defendingPlayer then
return
end
-- Don't try to attack spiceblooms
if attacker and attacker.Type == "spicebloom" then