Party Cast Bars not working in Classic Era #1455


Open
  • noises_and_or_sounds created this issue Dec 15, 2024

    I noticed they weren't working.

     

    I saw this mentioned in the description "Cast info is only available for your spells from the API. PitBull uses LibClassicCasterino to show cast bars for other units, but this can be inaccurate since there is a lot of guess-work involved."

     

    Upon reviewing how z-perl does their cast bars (where they do work), I saw they use UnitCastingInfo() and UnitChannelInfo(). I think these functions can enable party castbar functionality.

     

    No idea if this is the right way to implement this, but I did implement this in CastBar.lua and managed to get a castbar of a party member to show up!

     

    local LibClassicCasterino = LibStub("LibClassicCasterino", true)
    local UnitCastingInfo = function(unit)
    if unit == "player" then
    return CastingInfo()
    else
    return UnitCastingInfo(unit)
    -- elseif LibClassicCasterino then
    -- return LibClassicCasterino:UnitCastingInfo(unit)
    end
    end
    local UnitChannelInfo = function(unit)
    if unit == "player" then
    return ChannelInfo()
    else
    return UnitChannelInfo(unit)
    -- elseif LibClassicCasterino then
    -- return UnitChannelInfo(unit)--LibClassicCasterino:UnitChannelInfo(unit)
    end
    end

     


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