local PQ_DeathPact = PQ_DeathPact
local PQ_RaiseDead = PQ_RaiseDead
if PlayerHP <= 30 and PQR_SpellAvailable(PQ_DeathPact) then
local _,ghoul = GetTotemInfo(1)
if ghoul ~= nil
and ghoul ~= "" then
CastSpellByName(GetSpellInfo(PQ_DeathPact), "player")
return true
end
if PlayerHP <= 30 and IsSpellKnown(PQ_DeathPact) then
CastSpellByName(GetSpellInfo(PQ_RaiseDead), "player")
return true
end
end