Skip to content

Commit

Permalink
Use all players for invincible units during cinematics
Browse files Browse the repository at this point in the history
  • Loading branch information
speed2CZ authored and aeoncleanse committed Jun 19, 2017
1 parent adb01a6 commit 06f789e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lua/cinematics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,13 @@ function SetInvincible(area, invinBool)
table.insert(unitTable, unit)
end
end
ScenarioFramework.FlagUnkillableSelect(1, unitTable)
for _, v in ScenarioInfo.HumanPlayers do
ScenarioFramework.FlagUnkillableSelect(v, unitTable)
end
else
ScenarioFramework.UnflagUnkillable(1)
for _, v in ScenarioInfo.HumanPlayers do
ScenarioFramework.UnflagUnkillable(v)
end
end
end

Expand Down

0 comments on commit 06f789e

Please sign in to comment.