be safer.
This commit is contained in:
@@ -321,6 +321,6 @@ for v in ivalues(DisabledScoringModes) do r[v] = nil end
|
|||||||
Scoring = {}
|
Scoring = {}
|
||||||
setmetatable(Scoring, { __index = function(...) return function(params,pss)
|
setmetatable(Scoring, { __index = function(...) return function(params,pss)
|
||||||
--put any code here that should run before every scoring function
|
--put any code here that should run before every scoring function
|
||||||
if not GAMESTATE:IsHumanPlayer(params.Player) and r[key]
|
if not GAMESTATE:IsHumanPlayer(params.Player) and type(r[key]) == "function" then
|
||||||
then return r[key](...) end
|
return r[key](...) end
|
||||||
end }
|
end }
|
||||||
|
|||||||
Reference in New Issue
Block a user