17,101
edits
(getOtherMonsterBoxText: Fix area type determination) |
(_getMonsterBaseMaxHit: Fix calculation for Magic attacks) |
||
Line 438: | Line 438: | ||
result = 0 | result = 0 | ||
else | else | ||
local mSpell = Magic.getSpellByID( | local mSpell = Magic.getSpellByID(monster.selectedSpell, 'standard') | ||
if mSpell == nil then | if mSpell == nil then | ||
result = 0 | result = 0 | ||
Line 462: | Line 462: | ||
local magicDmg = 0 | local magicDmg = 0 | ||
if monster.selectedSpell ~= nil then | if monster.selectedSpell ~= nil then | ||
local mSpell = Magic.getSpellByID( | local mSpell = Magic.getSpellByID(monster.selectedSpell, 'standard') | ||
if mSpell ~= nil then | if mSpell ~= nil then | ||
baseLevel = p._getMonsterLevel(monster, 'Magic') | baseLevel = p._getMonsterLevel(monster, 'Magic') |