WA发布 发表于 2023-6-12 09:46:13

FeralAuras

WeakAura for feral DPS druids

- Combo points. Lighting up when you have 5 points (shown in cat form only)
- Energy bar with energy tick (shown in cat form only)
- Rage bar (shown in bear form only)
- Health bar (shown in caster form, in place of the rage/energy bar)
- Mana bar with mana tick and mp5 delay
- MCP tracker. Tracks number of MCP charges in your bag, and on your current equipped weapon. Also shows you the icon for current equipped weapon and the cooldown on the weapon. This is replaced by MCP haste buff when that is active
- Faerie fire timer

Final component is optimal DPS rotation display. It shows the optimal next spell to cast, using the rotation rules provided by Shedo in his youtube guide. It checks your current energy level, whether you have clearcasting, how much mana you have (for powershifting),how many combo points you have and whether you are autoattacking

function()
    local next_spell;
    local autoattacking = IsCurrentSpell(6603);
    local cur_energy = UnitPower("player", 3);
    local cur_mana = UnitPower("player", 0);
    local combo_pts = GetComboPoints("player", "target");
    local clearcasting = false;
    for i = 1, 40 do
      local _, _, _, _, _, _, _, _, _, spellId = UnitBuff("player", i)
      if spellId == nil then
            break;
      elseif spellId == 16870 then
            clearcasting = true;
            break;
      end;
    end;
   
   
    if clearcasting then
      next_spell = 136170; -- Clearcasting
    elseif (not autoattacking and cur_energy == 100) then
      next_spell = 132242; -- Tigers Fury
    elseif (combo_pts == 5 and cur_energy < 15) then
      next_spell = 132115; -- Cat Form
    elseif (combo_pts == 5 and cur_energy < 63) then
      next_spell = 132127; -- Ferocious Bite
    elseif (cur_energy < 28 and cur_mana > 479) then
      next_spell = 132115; -- Cat Form
    else
      next_spell = 136231; -- Shred
    end;
    return next_spell;
end;
页: [1]
查看完整版本: FeralAuras