Skip to content

Commit e91e3e9

Browse files
committed
[Statuses][AltPower][Resource] Fix UnitGUID nil
1 parent fcc4968 commit e91e3e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Statuses/AltPower.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ end
7777

7878
function PlexusAltPower:Plexus_UnitJoined(_, _, unitid)
7979
if not PlexusAltPower.db.profile.unit_altpower.enable then return end
80-
local unitGUID = UnitGUID(unitid)
8180
if not unitid then return end
81+
local unitGUID = UnitGUID(unitid)
8282
if (UnitIsPlayer(unitid) or (Plexus:IsRetailWow() and UnitInPartyIsAI(unitid))) then
8383
self:UpdateUnitResource(unitid)
8484
else

Statuses/Resource.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,8 @@ end
369369

370370
function PlexusStatusResource:Plexus_UnitJoined(_, _, unitid)
371371
local NoPets = PlexusStatusResource.db.profile.NoPets
372-
local unitGUID = UnitGUID(unitid)
373372
if not unitid then return end
373+
local unitGUID = UnitGUID(unitid)
374374
if (NoPets and not (UnitIsPlayer(unitid) or (Plexus:IsRetailWow() and UnitInPartyIsAI(unitid))) ) then
375375
self.core:SendStatusLost(unitGUID, "unit_resource")
376376
else

0 commit comments

Comments
 (0)