Module:Monsters: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 138: Line 138:
   local monster = p.getMonster(MonsterName)
   local monster = p.getMonster(MonsterName)
   if monster ~= nil then
   if monster ~= nil then
     return p._getMonsterHP(monster)/(100 - p._getMonsterStat(monster, 'damageReduction'))
     return math.floor((p._getMonsterHP(monster)/(1 - p._getMonsterStat(monster, 'damageReduction')/100)) + 0.5)
   else
   else
     return "ERROR: No monster with that name found[[Category:Pages with script errors]]"
     return "ERROR: No monster with that name found[[Category:Pages with script errors]]"
318

edits