GarrisonMissionListButtonTemplate button -> replace OnClick = ADDON_ACTION_FORBIDDEN
Code: (click on a mission and press escape twice to close mission + main frame to get the error)
Lua Code:
Error: Code:
Message: ADDON_ACTION_FORBIDDEN: OrderHallTaint tried to call the protected function 'SpellStopCasting()'. The reason why I'm replacing OnClick is to handle RightButtonUp (GarrisonMissionButton_OnClick doesn't care about button). I'm not getting the error when removing SpellStopCasting() and SpellStopTargeting() from ToggleGameMenu() (or when moving securecall("CloseAllWindows") up 2 lines) and UnitCastingInfo("player") returns nil. PS: @Dolby: This cloudflare protection is so annoying, it shows up *everytime* before previewing this post. |
you can't just call GarrisonMissionButton_OnClick, if you want to hook the click handler, use button:HookScript('OnClick',function() .. end)
|
I have had a lot of these errors myself while hooking stuff at the orderhall ui. The (basicly) same function work at the garrison ui without any error.
Going to the orderhall and typing /run OrderHallMissionFrame:MissionCompleteInitialize() will get the same taint as you posted, whilst at the agrrison /run GarrisonMissionFrame:MissionCompleteInitialize() wont get any taint error. I also noticed that OrderHallMissionFrame.MissionPage,"EscapePressed" will easily cause taint :/ To me it almost seems like it puts the palyer in a state comparable to an incombat state and thus causing. |
Quote:
But I did another test by adding a frame on top of the button that catches the clicks (so the mission button's OnClick handler doesn't get executed) and I still get the error, even if my OnClick handler is as simple as this (and basically does nothing, it only sets isZoneSupport, just like Blizzard does in OrderHallMission.OnClickMission): Lua Code:
This is easily reproducable without any addons by clicking a mission, executing Lua Code:
:confused: |
seems fixed now :banana:
|
All times are GMT -6. The time now is 05:18 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI