Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(fury_warrior)
- -- Fury Warrior One Target
- local fury_fury_warrior = "ww3 rp bt rb2 rb1 ww1 ww2"
- -- Globale Warteschlangen Tabelle leeren
- WA_qtable_fury_warrior = {}
- -- Prioritäts Tabelle löschen
- local prio_table = {}
- -- Reset Status Vars
- WA_rage = 0
- WA_er = 0
- WA_bc = 0
- WA_WW = 0
- -- Get SpellName
- local BC_N = GetSpellInfo(1719) -- Battle Cry
- local MC_N = GetSpellInfo(85739) -- Meat Cleaver
- local BT_N = GetSpellInfo(23881) -- Bloodthirst CD
- local BT_startTime, BT_duration=GetSpellCooldown(BT_N)
- local BT_CD = (BT_startTime + BT_duration) - GetTime()
- local RB_N = GetSpellInfo(85288) -- Raging Blow CD
- local RB_startTime, RB_duration=GetSpellCooldown(RB_N)
- local RB_CD = (RB_startTime + RB_duration) - GetTime()
- local RB_S = select(1,GetSpellCharges("Raging Blow")) -- Raging Blow Charges
- local WA_rage = UnitPower("player", SPELL_POWER_RAGE) -- Rage
- local WA_gcd = 1.5/(UnitSpellHaste("player")*0.01+1) -- Calculate GCD
- if WA_gcd <= 0.75 then WA_gcd = 0.75 end -- GCD if haste over 100%
- local count, spellID, _
- for i = 1, 40 do
- _, _, count, _, _, _, spellID = UnitAura("player", i, "HELPFUL|PLAYER")
- if not spellID then
- break
- elseif spellID == 85739 then
- WA_ww = count()
- break
- end
- end
- -- Prio Liste in Tabelle schreiben
- for v in string.gmatch(fury_fury_warrior, "[^ ]+") do
- table.insert(prio_table, v)
- end
- if prio_table[1] ~= nil then
- local s_max = #prio_table -- Count All Steps
- for i = 1, s_max do -- Get Priority List
- --------------------------- Fury Warrior Non Execute Rotation --------------------------
- -- Testing WA_ww count
- if prio_table[i] == "ww3" then
- local spell_name = GetSpellInfo(190411)
- if WA_ww == 2 then
- table.insert(WA_qtable_fury_warrior, spell_name)
- end
- end
- -- Rampage
- if prio_table[i] == "rp" then
- local spell_name = GetSpellInfo(184367)
- if WA_rage >= 95 then
- table.insert(WA_qtable_fury_warrior, spell_name)
- end
- end
- -- Bloodthirst
- if prio_table[i] == "bt" then
- local spell_name = GetSpellInfo(23881)
- if BT_CD < WA_gcd then
- table.insert(WA_qtable_fury_warrior, spell_name)
- end
- end
- -- Raging Blow 1
- if prio_table[i] == "rb1" then
- local spell_name = GetSpellInfo(85288)
- if RB_CD < WA_gcd then
- table.insert(WA_qtable_fury_warrior, spell_name)
- end
- end
- -- Raging Blow 2
- if prio_table[i] == "rb2" then
- local spell_name = GetSpellInfo(85288)
- if RB_S == 2 then
- table.insert(WA_qtable_fury_warrior, 46917)
- end
- end
- -- Whirlwind 1
- if prio_table[i] == "ww1" then
- local spell_name = GetSpellInfo(190411)
- if WA_rage >= 0 then
- table.insert(WA_qtable_fury_warrior, spell_name)
- end
- end
- -- Whirlwind 2
- if prio_table[i] == "ww2" then
- local spell_name = GetSpellInfo(190411)
- if WA_rage >= 0 then
- table.insert(WA_qtable_fury_warrior, spell_name)
- end
- end
- --------------------------- Fury Warrior Execute Rotation --------------------------
- end
- end
- -- Show/Hide Aura
- if (UnitCanAttack("player","target")) == true then
- return true
- end
- if (UnitCanAttack("player","target")) == nil then
- return false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement