--if PlayerHP <= 50 then-- if TargetValidationMelee("target", PQ_DeathStrike) then
-- CastSpellByName(GetSpellInfo(PQ_DeathStrike), "target")
-- return true
-- end
--end
local PQ_GiftOfTheNaaru = PQ_GiftOfTheNaaru
if IsSpellKnown(PQ_GiftOfTheNaaru) then
if UnitBuffID("player", PQ_GiftOfTheNaaru) and PlayerHP > 30 then
return false
end
if PlayerHP <= 60 and PQR_SpellAvailable(PQ_GiftOfTheNaaru) then
CastSpellByName(GetSpellInfo(PQ_GiftOfTheNaaru), "player")
return true
end
end
if PlayerHP <= 45 then
local _,ghoul = GetTotemInfo(1)
local PQ_DeathPact = PQ_DeathPact
if ghoul ~= nil
and ghoul ~= ""
and PQR_SpellAvailable(PQ_DeathPact) then
CastSpellByName(GetSpellInfo(PQ_DeathPact), "player")
return true
end
local PQ_HealthStoneItem = PQ_HealthStoneItem
if PlayerHP <= 35
and GetItemCount(PQ_HealthStoneItem,false,true) > 0
and GetItemCooldown(PQ_HealthStoneItem) == 0 then
UseItemByName(PQ_HealthStoneItem, "player")
return true
end
end