4,951
edits
Falterfire (talk | contribs) (Prepped Monster data for a statblock) |
Falterfire (talk | contribs) (Slight change to formatting) |
||
Line 15: | Line 15: | ||
function p.getMonsterStat(frame) | function p.getMonsterStat(frame) | ||
local MonsterName = frame.args[1] | local MonsterName = frame.args ~= nil and frame.args[1] or frame[1] | ||
local StatName = frame.args[2] | local StatName = frame.args ~= nil and frame.args[2] or frame[2] | ||
local monster = p.getMonster(MonsterName) | local monster = p.getMonster(MonsterName) | ||
if monster ~= nil then | if monster ~= nil then |