Skip to content

Commit

Permalink
Unclamped inc.heal limited to 200% of hp bar
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Feb 17, 2022
1 parent b460ed8 commit cdeb8d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2282,6 +2282,10 @@ local UnclampedSetValue = function(self, p, health)
return
end

if p + health > 2 then
p = 2 - health
end

self:Show()
self:UpdatePosition(p, health, self.parent)
end
Expand Down

0 comments on commit cdeb8d8

Please sign in to comment.