Hi,
I'm using AzN's warrior profile (PVENESS) and I wanted to add code for "Impending Victory" but regardless where I put it into the rotation, everything else after it won't be executed...
Ability Name: Impending Victory
Actions:
Cancel Channel: False
Recast Delay: 0
Skip Unknown: True
Spell ID: 0
Target: Target
Code:
local playerhealth = 100 * UnitHealth("player") / UnitHealthMax("player")
local ImpendingVictory, _, _, _, _, _, ImpendingVictoryTimer = UnitBuffID("player", 32216)
local IVTimeLeft = ImpendingVictoryTimer - GetTime()
if (ImpendingVictory and IVTimeLeft > 1) then
CastSpellByName(GetSpellInfo(103840))
end
Ofc I would change the if statement to some "real" conditions but even with this basic one (which get's executed), anything beyond this code in the rotation list isn't executed.
Why?...
Tia,
Highend