Originally Posted by
crystal_tech
PHP Code:
local evocast = select(7, GetSpellInfo(id or name))
local lbdebuff = select(7, UnitDebuffID("target", id))
local timeleft = lbdebuff - GetTime()
if evocast < timeleft then
return true
end
should get ya in the right direction
Im sorry, I messed up. I meant Channeling time.
I want it to cast evocate ONLY if the CHANNELING TIME is shorter than the duration of my living bomb Debuffbuff, to ensure that it does not fall off during the evocate CHANNEL time.
I tried this, and it does not work.
PHP Code:
local LivingBombTimeLeft = lbdebuff - GetTime()
local LivingBomb = select(7, UnitDebuffID("target",44457))
local EvocateChannelTime = select(7, GetSpellInfo(12051))
if LB then
if EvocateChannelTime < LivingBombTimeLeft then
CastSpellByName("Evocate")
return true
end
end