Skip to content
Snippets Groups Projects
Commit 9f58515a authored by DarkGod's avatar DarkGod
Browse files

Fixed Dismissal on crit

parent 50dd3c5b
No related branches found
No related tags found
No related merge requests found
......@@ -189,7 +189,7 @@ newTalent{
local saving_throw = self:combatMentalResist() * t.getSavePercentage(self, t)
print("[Dismissal] ", self.name:capitalize(), " attempting to ignore ", value, "damage from ", src.name:capitalize(), "using", saving_throw, "mental save.")
if self:checkHit(saving_throw, value) then
local dismissed = value * 1/self:mindCrit(2) -- Diminishing returns on high crits
local dismissed = value * (1 - (1 / self:mindCrit(2))) -- Diminishing returns on high crits
game:delayedLogMessage(self, nil, "Dismissal", "#TAN##Source# mentally dismisses some damage!")
game:delayedLogDamage(src, self, 0, ("#TAN#(%d dismissed)#LAST#"):format(dismissed))
return value - dismissed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment