DestroyTotem called invalidly #1179


  • Defect
Open
  • Akkua created this issue Jan 10, 2017

    When I try to destroy my Black Ox Statue which is treated as a totem according to blizzard via the macro

     

    /click TotemFrameTotem1 RightButton

    Nothing happens. When I manually right click the pitbull totem bar i get the message.

    Pitbull4_Totems has been blocked from an action only available to the Blizzard UI. You can disable this addon and reload the UI.

    And the following error is added to bugsack.

    2x [ADDON_ACTION_FORBIDDEN] AddOn 'PitBull4_Totems' tried to call the protected function 'DestroyTotem()'.
    !BugGrabber\BugGrabber.lua:573: in function <!BugGrabber\BugGrabber.lua:573>
    [C]: in function `DestroyTotem'
    PitBull4_Totems\Totems.lua:666: in function <PitBull4_Totems\Totems.lua:664>

    Locals:
    nil

  • Akkua added a tag Defect Jan 10, 2017
  • nebula169 posted a comment Jan 10, 2017

    I've started work on this, but to enable dismissing totems basically requires rewriting the entire module


    Edited Jan 10, 2017
  • Forge_User_80357404 posted a comment Apr 16, 2017

    Thanks guys for pointing out that Pitbull was the culprit :)

     

    Here's the fix : 

     

    Pitbull4\Modules\HideBlizzard\HideBlizzard.lua : 

     

    add 

    	elseif class == "MONK" then
    		TotemFrame:Show()

     

    After line 237 just before 

    	elseif class == "SHAMAN" then
    		TotemFrame_Update()

     


    Edited Apr 16, 2017

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