Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- elseif WeakAuras.CurrentEncounter and WeakAuras.CurrentEncounter.id==1863 then
- --Star Augur
- -- Fel Ejection
- spell = GetSpellInfo(205649)
- if UnitDebuff(unit, spell) then
- local color=aura_env.RED
- if getRange(unit) >= 8 then
- color=aura_env.YELLOW
- else
- color={1,0.6,0}
- end
- local _, _, _, _, _, _, expires = UnitDebuff(unit, spell)
- duration = aura_env.round(expires - GetTime(), 0)
- aura_env.addTextureToNameplate(unit, flames, aura_env.L, color, aura_env.ALPHA_M, duration)
- end
- -- Star Signs
- local signRed = GetSpellInfo(205445)
- local signYellow = GetSpellInfo(205429)
- local signGreen = GetSpellInfo(216345)
- local signWhite = GetSpellInfo(216344)
- local signUnit = UnitDebuff(unit, signRed) or UnitDebuff(unit, signYellow) or UnitDebuff(unit, signGreen) or UnitDebuff(unit, signWhite)
- if signUnit then
- local _, _, _, _, _, _, signUnitExpires = UnitDebuff(unit, signUnit)
- local shape = square
- local color = {0,0,0}
- cache[1863] = cache[1863] or {}
- local signSelf = cache[1863]["signSelf"]
- if not cache[1863]["signSelfIsSet"] then
- signSelf = UnitDebuff("player", signRed) or UnitDebuff("player", signYellow) or UnitDebuff("player", signGreen) or UnitDebuff("player", signWhite)
- cache[1863]["signSelf"] = signSelf
- cache[1863]["signSelfIsSet"] = true
- end
- if signUnit == signRed then color = aura_env.RED
- elseif signUnit == signYellow then color = aura_env.YELLOW
- elseif signUnit == signGreen then color = aura_env.GREEN
- elseif signUnit == signWhite then color = aura_env.WHITE
- end
- if signUnit == signSelf then
- shape = circle
- else
- shape = square
- end
- aura_env.addTextureToNameplate(unit, shape, aura_env.L, color, aura_env.ALPHA_M, signUnitExpires)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement