Created
October 29, 2013 22:12
-
-
Save benphelps/7223596 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ProbablyEngine.module.world.aquireHealth = function(guid) | |
local inGroup = GetNumGroupMembers() | |
if inGroup then | |
if IsInRaid("player") then | |
for i=1,inGroup do | |
if guid == UnitGUID("RAID".. i .. "TARGET") then | |
return UnitHealth("RAID".. i .. "TARGET") | |
end | |
end | |
else | |
for i=1,inGroup do | |
if guid == UnitGUID("PARTY".. i .. "TARGET") then | |
return UnitHealth("PARTY".. i .. "TARGET") | |
end | |
end | |
end | |
else | |
if guid == UnitGUID("PLAYERTARGET") then | |
return UnitHealth("PLAYERTARGET") | |
end | |
end | |
return false | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment