Druid Mana Bar showed in all form #2014


  • Waiting
  • Verified
Open
  • affectionate_banach59 created this issue Oct 3, 2023

    In ./modules/druid.lua

    ADDITIONAL_POWER_BAR_INDEX is nil

    Should be like this to avoid show extra mana bar in Human Form or Travel From

    function Druid:PowerChanged(frame)
        local ADDITIONAL_POWER_BAR_INDEX = 0
        local visible = UnitPowerType(frame.unit) ~= ADDITIONAL_POWER_BAR_INDEX and not frame.inVehicle
        local type = visible and "RegisterUnitEvent" or "UnregisterSingleEvent"

        frame[type](frame, "UNIT_POWER_FREQUENT", self, "Update")
        frame[type](frame, "UNIT_MAXPOWER", self, "Update")
        ShadowUF.Layout:SetBarVisibility(frame, "druidBar", visible)

        if( visible ) then self:Update(frame) end
    end
  • affectionate_banach59 added the tags Verified Waiting Oct 3, 2023

To post a comment, please login or register a new account.