Remove Killed unit display for tournament
This commit is contained in:
@@ -104,6 +104,11 @@ function TacticalGameClass:CombatTextUnitBuilt(unit)
|
||||
return
|
||||
end
|
||||
|
||||
if not StringCompare(LocalPlayer.Get_Faction_Name(), owner.Faction) then
|
||||
-- Do not display combat feed for players on opposite factions
|
||||
return
|
||||
end
|
||||
|
||||
local timeText = FormatTime(unit.BuildTime)
|
||||
local text = string.format("%s\t[%s]: BUILT %s ($%d)", timeText, owner.Name, unit.Name, unit.BuildCost)
|
||||
local faction = Factions[owner.Faction]
|
||||
@@ -155,6 +160,11 @@ function TacticalGameClass:CombatTextUnitKilled(unit)
|
||||
return
|
||||
end
|
||||
|
||||
if not StringCompare(LocalPlayer.Get_Faction_Name(), owner.Faction) then
|
||||
-- Do not display combat feed for players on opposite factions
|
||||
return
|
||||
end
|
||||
|
||||
local killer = self.Players[unit.KillerId]
|
||||
local timeText = FormatTime(unit.DeathTime)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user