1
0
mirror of https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git synced 2024-12-14 10:23:17 +02:00

Taking names and fixing bugs.

This commit is contained in:
Oarcinae 2020-02-16 15:28:22 -05:00
parent a46c9a4889
commit 41ac9edb3d

View File

@ -78,7 +78,7 @@ function OarcModifyEnemyGroup(group)
-- Target could also be a player character (more rare)
if (target_player == nil) and (target_entity.type == "character") then
target_player = target_entity.associated_player
target_player = target_entity.player
end
-- I don't think this should happen...
@ -111,6 +111,7 @@ function OarcModifyEnemyGroup(group)
if (global.buddyPairs[target_player.name] ~= nil) then
SendBroadcastMsg("Enemy group released: " .. GetGPStext(group.members[1].position) .. " Target: " .. GetGPStext(target_entity.position) .. " " .. target_player.name)
log("OarcModifyEnemyGroup RELEASING enemy group since someone in the BUDDY PAIR is ONLINE")
return
end
-- Otherwise, we delete the group.