Hi, I'm building a destro macro. First 2 lines are as follows. As it take a while before Improved Soul Fire Buff appears, this macro cast soulfire twice before going to immolate. How can this be fixed?
Thx
Code:
/run if not UnitBuff("player", "Improved Soul Fire") then CastSpellByName("Soul Fire") end
/run if UnitHealth("target") > 0 then i=1 while(i<=40)do a={UnitDebuff("target",i)} if a[1]=="Immolate" and a[8]=="player" then break else i=i+1 end end; if i>40 then CastSpellByName("Immolate") end end