• 0

    posted a message on Quartz: Modular Casting Bar
    Swing timer isn't working for druids in forms. For whatever reason UnitDamage returns offhand data for druids in bear or cat forms. The following patch seems to work around it:

    --- /Users/breser/Desktop/Quartz/Swing/Swing.lua    2007-06-25 15:20:48.000000000 -0700
    +++ Quartz/Swing/Swing.lua   2007-07-11 13:20:14.000000000 -0700
    @@ -117,7 +117,9 @@
     end
     function QuartzSwing:PLAYER_ENTER_COMBAT()
        local _,_,offhandlow, offhandhigh = UnitDamage('player')
    -    if math_abs(offhandlow - offhandhigh) <= 0.1 then
    +    local _,playerclass = UnitClass('player')
    +    local offhanddiff = math_abs(offhandlow - offhandhigh);
    +    if offhanddiff <= 0.1 or playerclass == 'DRUID' then
            swingmode = 0 -- shouldn't be dual-wielding
        end
     end
    Posted in: General AddOns
  • To post a comment, please or register a new account.