Originally Posted by
billybuffalo
Is there a coding way to tell your destro profile to hold on to cb's untill i have certain procs, or to only use if i am about to cap embers??? This seems to be the only flaw in the destro profile i can see. Bad timing on chaos bolts. I know i can just tell it to never cast chaos bolts by changing the timer for ds timer...and then just always fire cb's manually but would rather just code it into the profile itself to do both, watch the timer for ds AND in the meantime, watch for certain procs.
Is thee anyone that can help me with this? Im a quick study!
I think i may have figured this out on my own. However, i have run into 1 problem. I simply found the proc ID's I needed, and added them as more "If these are present" reasons to tell the profile to shoot a CB off. It works great. Problem is, it will no longer watch for the CD on Dark soul, and will never pool embers to prepare for it, as long as one of my procs comes up.
Where do i tell it that it still needs to watch for the remaining CD on DS?
Code:
local Backdraft,_,_,BDStacks = UnitBuffID("player",117896)
local SpellStart, SpellDuration = GetSpellCooldown(113858)
local darksoul = SpellStart + SpellDuration - GetTime()
local Targethealth = 100 * UnitHealth("target") / UnitHealthMax("target")
local havoc, _, _, stacks = UnitBuffID( "player", 80240)
local SaveTime = 20
----------------------------------------------------------------------------
if PQI_MavminsDestruction_EmberSaveChaosBolt_enable then
SaveTime = PQI_MavminsDestruction_EmberSaveChaosBolt_value
else
SaveTime = 0
end
if Targethealth < 20
or AOE_MODE == true
or PQR_IsCastingSpell(116858)
or UnitCastingInfo("player") == GetSpellInfo(116858)
or PQR_IsMoving(0.3) == true
or darksoul <= SaveTime and UnitPower("player", 14) > 1
or havoc == nil and Backdraft ~= nil and BDStacks > 2 then
return false
end
if UnitBuffID("player",113858) ~= nil and UnitPower("player", 14) >= 1
or UnitBuffID("player",104993) ~= nil and UnitPower("player", 14) >= 1
or UnitBuffID("player",76093) ~= nil and UnitPower("player", 14) >= 1
or UnitBuffID("player",125487) ~= nil and UnitPower("player", 14) >= 1
or UnitBuffID("player",148897) ~= nil and UnitPower("player", 14) >= 1
or UnitBuffID("player",137590) ~= nil and UnitPower("player", 14) >= 1
or UnitBuffID("player",114207) ~= nil and UnitPower("player", 14) >= 1
or UnitBuffID("player",138786) ~= nil and UnitPower("player", 14) >= 1
or not PQI_MavminsDestruction_EmberSaveChaosBolt_enable and UnitPower("player", 14) > 1
or havoc ~= nil and stacks == 3 and UnitPower("player", 14) >= 1 then
CastSpellByName(tostring(GetSpellInfo(116858)))
LASTCAST = "ChaosBolt"
return true
end
And to be completely honest, i am not sure if what i added just totally makes the profile ignore any logic/rules for when to fire chaos bolts. I may have spotted it firing a cb without any of my procs.
Thoughts?