Originally Posted by
turtlemans
Thanks a ton! Could I just keep adding targets to that list that I don't want to use soul reaper on?
i.e.
Code:
local Targethealth = 100 * UnitHealth("target") / UnitHealthMax("target")
local SpellCheck = PQR_SpellAvailable(130735)
local TargetName = UnitName("target")
if SpellCheck
and Targethealth <= 35
and TargetName ~= "Garalon's Leg"
and TargetName ~= "Celestial Protector"
and TargetName ~= "Energy Charge"
then
return true
end
Also, you're the best!
I would suggest a table.
Code:
local Targethealth = 100 * UnitHealth("target") / UnitHealthMax("target")
local SpellCheck = PQR_SpellAvailable(130735)
local TargetName = UnitName("target")
CanSoulReaper = true
local SoulReaperMobs = {
"Garalon's Leg",
"Celestial Protector",
"Energy Charge"
}
for i=1, #SoulReaperMobs do
if TargetName == SoulReaperMobs[i]
then
CanSoulReaper = false
end
end
if SpellCheck
and Targethealth <= 35
and CanSoulReaper = true
then
return true
end