Module:Monsters: Difference between revisions

Added icon for normal attack when doing the override
(Added check to allow for showing monster normal attacks if it sometimes does it as a fallback.)
(Added icon for normal attack when doing the override)
Line 440: Line 440:
     result = iconText..'1 - '..p._getMonsterBaseMaxHit(monster)..' '..typeText..' Damage'
     result = iconText..'1 - '..p._getMonsterBaseMaxHit(monster)..' '..typeText..' Damage'
   elseif normalAttackChance > 0 then
   elseif normalAttackChance > 0 then
     result = '* '..normalAttackChance..'% '..iconText..'1-'..p.getMonsterBaseMaxHit(frame)..' '..typeText..' Damage'..result
     result = '* '..normalAttackChance..'% '..iconText..'1 - '..p.getMonsterBaseMaxHit(frame)..' '..typeText..' Damage'..result
   elseif hasActiveBuffSpec then
   elseif hasActiveBuffSpec then
     --If the monster normally has a 0% chance of doing a normal attack but some special attacks can't be repeated, include it
     --If the monster normally has a 0% chance of doing a normal attack but some special attacks can't be repeated, include it
     --(With a note about when it does it)
     --(With a note about when it does it)
     result = '* 1 - '..p._getMonsterBaseMaxHit(monster)..' '..typeText..' Damage (Instead of repeating '..table.concat(buffAttacks, ' or ')..' while the buff is already active)'..result
     result = '* '..iconText..' 1 - '..p._getMonsterBaseMaxHit(monster)..' '..typeText..' Damage (Instead of repeating '..table.concat(buffAttacks, ' or ')..' while the buff is already active)'..result
   end
   end