Advertisement
Lygre

Determine Haste group (assumes any Haste as Haste II)

Oct 18th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.10 KB | None | 0 0
  1. function determine_haste_group()
  2.     classes.CustomMeleeGroups:clear()
  3.     if buffactive.haste then
  4.         if buffactive.haste == 2 or buffactive[604] or buffactive[228] or buffactive.march then
  5.             classes.CustomMeleeGroups:append('MaxHaste')
  6.             add_to_chat(3,'Max Haste Mode')
  7.         else
  8.             classes.CustomMeleeGroups:append('HighHaste')
  9.             add_to_chat(3,'High Haste Mode')
  10.         end
  11.     elseif buffactive[604] then
  12.         if buffactive.march == 1 and buffactive[228] then
  13.             classes.CustomMeleeGroups:append('MaxHaste')
  14.             add_to_chat(3,'Max Haste Mode')
  15.         elseif buffactive.march == 2 or buffactive[228] then
  16.             classes.CustomMeleeGroups:append('MaxHaste')
  17.             add_to_chat(3,'Max Haste Mode')
  18.         elseif buffactive.march == 1 then
  19.             classes.CustomMeleeGroups:append('HighHaste')
  20.             add_to_chat(3,'High Haste Mode')
  21.         else
  22.             classes.CustomMeleeGroups:append('LowHaste')
  23.         end
  24.     elseif buffactive[228] then
  25.         if buffactive.march then
  26.             classes.CustomMeleeGroups:append('MaxHaste')
  27.             add_to_chat(3,'Max Haste Mode')
  28.         else
  29.             classes.CustomMeleeGroups:append('HighHaste')
  30.             add_to_chat(3,'High Haste Mode')
  31.         end
  32.     end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement