Add Actor.RepairBuilding
Make Production.SetRallyPoint and .SetPrimaryBuilding more robust
Allow for incremental team assembly
Actor.Patrol*: make sure that the actor is still alive
Add Production.BuildTeamFromTemplate

Production.BuildTeamFromTemplate allows the production of teams from a
list of
actor types, assigning a function to that team once it is complete.

A 'template' in this case looks like this:
template = { {factory, {list of units to build using aforementioned factory}} }
e.g. template = { {barracks, {"e1", "e1", "e1", "e3", "e3"}} }

You can also build teams using multiple factories like this:
template = { {barracks, {"e3", "e3", "e3"}}, {war_factory, {"3tnk", "3tnk"}} }

Before using Production.BTFT you need to call
Production.EventHandlers.Setup once.
Merge pull request #4854 from obrakmann/lua

More Lua updates