doadin / Plexus

Other
9 stars 2 forks source link

Accessing globals #1

Closed Dairyman closed 4 years ago

Dairyman commented 4 years ago

Hi, this classic changes write/read now global variables

Change: https://github.com/doadin/Plexus/blob/4e9b19b8a3d2eb6d8659e19d90eb4fa996a1948f/Statuses/Heals.lua#L112-L114 To:

local incoming = 0
if not Plexus:IsClassicWow() then 
     incoming = UnitGetIncomingHeals(unit) or 0 
end 

And https://github.com/doadin/Plexus/blob/4e9b19b8a3d2eb6d8659e19d90eb4fa996a1948f/Statuses/Absorbs.lua#L96-L98 To:

local amount = 0
if not Plexus:IsClassicWow() then 
     amount = UnitIsVisible(unit) and UnitGetTotalAbsorbs(unit) or 0 
 end 
doadin commented 4 years ago

Thanks!