Module:Magic: Difference between revisions

_getSpellStat: Remove reference to undeclared var
(_getSpellRequirements: Fix regressions)
(_getSpellStat: Remove reference to undeclared var)
Line 316: Line 316:
return p.getTypeString(spell.spellBook)
return p.getTypeString(spell.spellBook)
elseif stat == 'spellDamage' then
elseif stat == 'spellDamage' then
if spell.maxHit ~= undefined then  
if spell.maxHit ~= nil then  
return spell.maxHit * 10
return spell.maxHit * 10
else
else