diff --git a/README.md b/README.md index 95255bfb40..2b51efc3be 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -FAF Gametype | FAF Develop game type | FAF Beta balance gametype +FAF | FAF Develop| FAF Beta balance ------------ | ------------- | ----------- [![Build](https://github.com/FAForever/fa/actions/workflows/build.yaml/badge.svg?branch=deploy%2Ffaf)](https://github.com/FAForever/fa/actions/workflows/build.yaml) | [![Build](https://github.com/FAForever/fa/actions/workflows/build.yaml/badge.svg?branch=deploy%2Ffafdevelop)](https://github.com/FAForever/fa/actions/workflows/build.yaml) | [![Build](https://github.com/FAForever/fa/actions/workflows/build.yaml/badge.svg?branch=deploy%2Ffafbeta)](https://github.com/FAForever/fa/actions/workflows/build.yaml) diff --git a/lua/aibrain.lua b/lua/aibrain.lua index e52fdb2a97..6af516ab4e 100644 --- a/lua/aibrain.lua +++ b/lua/aibrain.lua @@ -574,9 +574,13 @@ AIBrain = Class(moho.aibrain_methods) { for k, brain in brains do local units = self:GetListOfUnits(categories.ALLUNITS - categories.WALL - categories.COMMAND, false) if units and not table.empty(units) then - TransferUnitsOwnership(units, brain.index) + local givenUnitCount = table.getn(TransferUnitsOwnership(units, brain.index)) + + -- only show message when we actually gift that player some units + if givenUnitCount > 0 then + Sync.ArmyTransfer = { { from = selfIndex, to = brain.index, reason = "fullshare" } } + end - Sync.ArmyTransfer = { { from = selfIndex, to = brain.index, reason = "fullshare" } } WaitSeconds(1) end end