Module:Magic: Difference between revisions

Fix issue with generation of curse table
(_getSpellDescription: Support enemyModifiers (for curses))
(Fix issue with generation of curse table)
Line 148: Line 148:
   if spell.enemyModifiers ~= nil then
   if spell.enemyModifiers ~= nil then
   local enemyModText = Constants.getModifiersText(spell.enemyModifiers, false)
   local enemyModText = Constants.getModifiersText(spell.enemyModifiers, false)
   result = result .. (string.len(result) > 0 and '\r\n' or '') .. 'Enemies are inflicted with:\r\n' .. enemyModText
   result = result .. (string.len(result) > 0 and '<br/>' or '') .. 'Enemies are inflicted with:<br/>' .. enemyModText
   end
   end
   elseif spell.type == 'Spells' then
   elseif spell.type == 'Spells' then