Lua-Modules
Lua-Modules copied to clipboard
Check for all forms of display name
Summary
Check for alternative storage names of "display name" since they are not always the same
How did you test this change?
/dev
not a fan, annotations state that the function is expecting
standardPlayerand not match2player or an abitrary table
I've changed it now to only be used where necessary
alternative solution (personally do not have a preference, just leaving it here as an option; untested fwiw):
---@param opponent table
---@return boolean
function MatchFunctions._checkForNonEmptyOpponent(opponent)
return not Opponent.isTbd(Opponent.fromMatch2Record(opponent))
end