Module:PatchVariablesClass

local util_args = require('Module:ArgsUtil') local util_map = require('Module:MapUtil') local ChampionList = require('Module:ChampionList')

local VARS = { 'patch', 'disabled', 'hotfix', 'footnote' }

local h = {}

local p = require('Module:SetVariablesClass'):extends

p.prefix = 'SetPatch'

function p:set(args) args.disabled = h.formatDisabledList(args.disabled) for _, var in ipairs(VARS) do		self:_set(var, args[var] or '') end end

function h.formatDisabledList(disabled) if not disabled then return nil end return ChampionList(disabled):names end

return p