If anyone wants
Code:
local PlayerCombat = UnitAffectingCombat("player")
local PlayerThreat = UnitThreatSituation("player", "target")
local EnemyExists = UnitExists("target")
local Frostflake = UnitBuffID("player", 109325)
local FrostflakeSnare = UnitBuffID("player", 109337)
--Hand of Freedom
if PlayerCombat then
if Frostflake or FrostflakeSnare then
if not PQR_SpellAvailable(1044) then
CastSpellByID(4987,"player")
else CastSpellByID(1044,"player") end end end
--Hand of Salvation
if EnemyExists and PlayerCombat then
if PlayerThreat == 3 and PQR_SpellAvailable(1038) then
CastSpellByID(1038,"player") end end
Should work, just put them together.
edit: Will this work?
local CrusaderStrike = GetSpellCooldown(35395)
if CrusaderStrike - GetTime() <= 0.2 and CrusaderStrike - GetTime() > 0 then
return true end
I want to replace this wait code in my profile
local crusaderStrikeStart, crusaderStrikeDuration = GetSpellCooldown(35395)
local crusaderStrikeCD = crusaderStrikeStart - GetTime() + crusaderStrikeDuration
local gcdSpell = PQR_GCDSpellID()
local gcdStartTime, gcdDuration = GetSpellCooldown(gcdSpell)
local gcdTimeLeft = gcdStartTime + gcdDuration - GetTime()
if gcdTimeLeft < 0 then
gcdTimeLeft = 0
end
crusaderStrikeCD = crusaderStrikeCD - gcdTimeLeft
if crusaderStrikeCD < 0 then
crusaderStrikeCD = 0
end
if crusaderStrikeCD < 0.2 and crusaderStrikeCD > 0 then
return true
end