Merge remote-tracking branch 'origin/master' into develop

This commit is contained in:
Applevangelist 2024-03-22 08:56:28 +01:00
commit d6c9195555

View File

@ -229,7 +229,7 @@ SCORING = {
ClassID = 0,
Players = {},
AutoSave = true,
version = "1.18.2"
version = "1.18.3"
}
local _SCORINGCoalition = {
@ -1062,7 +1062,7 @@ function SCORING:_EventOnHit( Event )
if PlayerHit.UNIT.ThreatType == nil then
PlayerHit.ThreatLevel, PlayerHit.ThreatType = PlayerHit.UNIT:GetThreatLevel()
-- if this fails for some reason, set a good default value
if PlayerHit.ThreatType == nil then
if PlayerHit.ThreatType == nil or PlayerHit.ThreatType == "" then
PlayerHit.ThreatLevel = 1
PlayerHit.ThreatType = "Unknown"
end