Anonymous

Module:Magic: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 132: Line 132:
local args = frame.args ~= nil and frame.args or frame
local args = frame.args ~= nil and frame.args or frame
local spellName = args[1]
local spellName = args[1]
local namespace = args.namespace or nil
local namespace = (args.namespace ~= "" and args.namespace) or nil
local spell = p.getSpell(spellName, nil, namespace)
local spell = p.getSpell(spellName, nil, namespace)
if spell == nil then
if spell == nil then
Line 228: Line 228:
local args = frame.args ~= nil and frame.args or frame
local args = frame.args ~= nil and frame.args or frame
local spellName = args[1]
local spellName = args[1]
local namespace = args.namespace or nil
local namespace = (args.namespace ~= "" and args.namespace) or nil
local spell = p.getSpell(spellName, nil, namespace)
local spell = p.getSpell(spellName, nil, namespace)
if spell == nil then
if spell == nil then
Line 252: Line 252:
local args = frame.args ~= nil and frame.args or frame
local args = frame.args ~= nil and frame.args or frame
local spellName = args[1]
local spellName = args[1]
local namespace = args.namespace or nil
local namespace = (args.namespace ~= "" and args.namespace) or nil
local spell = p.getSpell(spellName, nil, namespace)
local spell = p.getSpell(spellName, nil, namespace)
if spell == nil then
if spell == nil then
Line 372: Line 372:
local spellName = args[1]
local spellName = args[1]
local statName = args[2]
local statName = args[2]
local namespace = args.namespace or nil
local namespace = (args.namespace ~= "" and args.namespace) or nil
local spell = p.getSpell(spellName, nil, namespace)
local spell = p.getSpell(spellName, nil, namespace)
if spell == nil then
if spell == nil then
Line 383: Line 383:
local args = frame.args ~= nil and frame.args or frame
local args = frame.args ~= nil and frame.args or frame
local spellName = args[1]
local spellName = args[1]
local namespace = args.namespace or nil
local namespace = (args.namespace ~= "" and args.namespace) or nil
local spell = p.getSpell(spellName, nil, namespace)
local spell = p.getSpell(spellName, nil, namespace)
if spell == nil then
if spell == nil then
Line 416: Line 416:
local args = frame.args ~= nil and frame.args or frame
local args = frame.args ~= nil and frame.args or frame
local spellName = args[1]
local spellName = args[1]
local namespace = args.namespace or nil
local namespace = (args.namespace ~= "" and args.namespace) or nil
local spell = p.getSpell(spellName, nil, namespace)
local spell = p.getSpell(spellName, nil, namespace)
if spell == nil then
if spell == nil then
2,875

edits