Merge pull request #5865 from obrakmann/fix5861

Fix RepairBuilding not working for AI and Lua scripts
This commit is contained in:
Matthias Mailänder
2014-07-07 20:54:03 +02:00
3 changed files with 7 additions and 4 deletions

View File

@@ -152,7 +152,7 @@ end
Actor.RepairBuilding = function(actor)
local rb = Actor.TraitOrDefault(actor, "RepairableBuilding")
if rb ~= nil and rb.Repairer == nil then
if rb ~= nil and not rb.RepairActive then
rb:RepairBuilding(actor, Actor.Owner(actor))
end
end