gk646 / GearScoreClassic

A all-around gearscore addon for WoW Classic
MIT License
2 stars 0 forks source link

Getting an error in BG's #8

Closed Shoelive closed 8 months ago

Shoelive commented 8 months ago

Heya, just trying to help and report feedback. Got this in a WSG bg:

7x [ADDON_ACTION_BLOCKED] AddOn 'GearScoreClassic+' tried to call the protected function 'CheckInteractDistance()'. [string "@!BugGrabber/BugGrabber.lua"]:485: in function <!BugGrabber/BugGrabber.lua:485> string "=[C]": in function `CheckInteractDistance' [string "@GearScoreClassic+/Main.lua"]:37: in function <GearScoreClassic+/Main.lua:27>

Locals: _ = Frame { RegisterEvent = defined @!BugGrabber/BugGrabber.lua:491 0 = UnregisterEvent = defined @!BugGrabber/BugGrabber.lua:491 SetScript = defined @!BugGrabber/BugGrabber.lua:491 } event = "ADDON_ACTION_BLOCKED" events =

{ ADDON_ACTION_BLOCKED = defined @!BugGrabber/BugGrabber.lua:557 ADDON_ACTION_FORBIDDEN = defined @!BugGrabber/BugGrabber.lua:557 PLAYER_LOGIN = defined @!BugGrabber/BugGrabber.lua:551 LUA_WARNING = defined @!BugGrabber/BugGrabber.lua:566 ADDON_LOADED = defined @!BugGrabber/BugGrabber.lua:511 }

gk646 commented 8 months ago

Thanks for the report, ive seen this a couple times myself. Ill check the usage of the function and try to fix it.

Translitdk commented 8 months ago

Thanks for the report, ive seen this a couple times myself. Ill check the usage of the function and try to fix it.

Adding not InCombatLockdown() check in the hook function of main lua fixes it, since it is protected to call in the combat

warcraft.wiki.gg

gk646 commented 8 months ago

Thanks ill patch it