318
edits
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)/( | 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]]" |
edits