Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. -- Star Signs
  2. local signRed = GetSpellInfo(205445)
  3. local signYellow = GetSpellInfo(205429)
  4. local signGreen = GetSpellInfo(216345)
  5. local signWhite = GetSpellInfo(216344)
  6.  
  7. local signUnit = UnitDebuff(unit, signRed) or UnitDebuff(unit, signYellow) or UnitDebuff(unit, signGreen) or UnitDebuff(unit, signWhite)
  8. if signUnit then
  9. local _, _, _, _, _, _, signUnitExpires = UnitDebuff(unit, signUnit)
  10. local alpha = aura_env.ALPHA_M
  11. local color = {0,0,0}
  12. cache[1863] = cache[1863] or {}
  13. local signSelf = cache[1863]["signSelf"]
  14. if not cache[1863]["signSelfIsSet"] then
  15. signSelf = UnitDebuff("player", signRed) or UnitDebuff("player", signYellow) or UnitDebuff("player", signGreen) or UnitDebuff("player", signWhite)
  16. cache[1863]["signSelf"] = signSelf
  17. cache[1863]["signSelfIsSet"] = true
  18. end
  19. if signUnit == signRed then color = aura_env.RED
  20. elseif signUnit == signYellow then color = aura_env.YELLOW
  21. elseif signUnit == signGreen then color = aura_env.GREEN
  22. elseif signUnit == signWhite then color = aura_env.WHITE
  23. end
  24. if signUnit == signSelf then
  25. alpha = {0.1,0.7,0.4}
  26. else
  27. alpha = aura_env.ALPHA_M
  28. end
  29. aura_env.addTextureToNameplate(unit, circle, aura_env.L, color, alpha, signUnitExpires)
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement