Don't spawn units for defeated players and players who won on survival of the fittest...
commitd8036d49063687ca45456c892bd34f39a76a7484
authorelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sun, 6 Nov 2016 01:46:56 +0000 (6 01:46 +0000)
committerelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sun, 6 Nov 2016 01:46:56 +0000 (6 01:46 +0000)
treeb59df8e970c870be1c3064b57b5640a4efde61a0
parente8fffa8a46bbdb19f9ed781f0ba3c643eedc2dc0
Don't spawn units for defeated players and players who won on survival of the fittest. Refs #3102.

The previous code errored as the trigger point became gaia, consequently trying to access the undefined playerCivicCenter of gaia.
Remove two useless loops by sending the command for all entities instead of one command for each entity.
Rename attackerEntities to attackerTemplates and attackerCount to attackersPerTemplate.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@18913 3db68df2-c116-0410-a063-a993310a9797
binaries/data/mods/public/maps/random/survivalofthefittest_triggers.js