Originally Posted by
warlock2000
You know I did have an inkling, "green fire?".
Thanks for the heads-up. So far unfortunately, I haven't found a work-around to the problem of Immolate being cast two times in a row by PQR, and neither have the profiles I've looked at.
heres my followup:
Code:
local Immo = 348
if not Immotime then Immotime = 0 end
if Spells[Immo].known and ( GetTime() - Immotime > 2 or Immotime == 0 ) then
if not UnitDebuffID("target", 348, "PLAYER") then
_Cast(Immo, "target")
return true
elseif UnitDebuffID("target", 348, "PLAYER") and select(7, UnitDebuffID("target", 348, "PLAYER")) - GetTime() < 6 then
_Cast(Immo, "target")
return true
end
end
this is my destro lock code for immo with refresh. I used a spell table and a custom cast function that i'll post below this line.
Code:
--Spell Table
local Spells = {
[Immo] = { known = IsPlayerSpell(348) }
}
--cast function
_Cast = nil
function _Cast(sid, t)
--SpellCancelQueuedSpell() --don't need it all the time so its commented out.
CastSpellByName(GetSpellInfo(sid), t)
if sid == Immo then
Immotime = GetTime()
end
end
hope this gets you going in the direction you want and you don't have to use tables.