Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

Commit

Permalink
Add workaround for UNIT_HEALTH firing with nil unit (fixes CF-859)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phanx committed Oct 26, 2016
1 parent b46f729 commit 132c9ed
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Version 7.1.0.0

- Added a workaround for a Blizzard bug causing errors in the Health status module ([ticket #859](https://wow.curseforge.com/addons/grid/tickets/859))

### Version 7.0.3.3

- Really fixed the frames sometimes appearing behind the backdrop ([ticket #840](https://wow.curseforge.com/addons/grid/tickets/840))
Expand Down
2 changes: 1 addition & 1 deletion Grid.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 70000
## Interface: 70100
## Version: @project-version@

## Title: Grid
Expand Down
6 changes: 6 additions & 0 deletions Statuses/Health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ end
local UnitGUID, UnitHealth, UnitHealthMax, UnitIsConnected, UnitIsDeadOrGhost, UnitIsFeignDeath = UnitGUID, UnitHealth, UnitHealthMax, UnitIsConnected, UnitIsDeadOrGhost, UnitIsFeignDeath

function GridStatusHealth:UpdateUnit(event, unitid, ignoreRange)
if not unitid then
-- 7.1: UNIT_HEALTH and UNIT_MAXHEALTH sometimes fire with no unit token
-- https://wow.curseforge.com/addons/grid/tickets/859
return
end

local guid = UnitGUID(unitid)

if not GridRoster:IsGUIDInRaid(guid) then
Expand Down

0 comments on commit 132c9ed

Please sign in to comment.