Originally Posted by
BGkamaz
Sorry
I need 1 icon for my Rip and if my target is below 60% hp my Ferocious Bite is refreshing rip so then i want not to see rip but on the place of Rip i want to see the texture of FB with the rip timer if that is possible.
Show rip icon with timer and if target below 60% hp then change rip texture to FB texture with time remaining on rip - something like that but i have no idea how to type it in a proper way so the addon works with it
Ok I'm more confused now, So let me give you some examples and you say yes or no. If these can be merged into 1 icon we'll look at that later.
Icon 1 Rip debuff on target, Also is this your rip only or any rip?
Icon 2 FB texture if target is below 60% and Rip is on target.
So since you are checking HP and Debuff and want a new texture yet want the timer from Rip we need 2 icons I think.
Rip on target
Code:
return IconAura("HARMFUL", "target", "Rip", "player")
60% HP & Rip w/ FB Icon
Code:
if UnitExists("target") and IconAura("HARMFUL", "target", "Rip") then
local c = floor(UnitHealth("target") / UnitHealthMax("target") * 100)
if c <= 60 then
return IconSpell("Ferocious Bite", true)
end
end
Try those see if the 2nd one works for you or if I fouled it up somewhere.