Tome of Teleportation

Tome of Teleportation

168k Downloads

`'TomeOfTeleportation' tried to call the protected function 'EquipItemByName()'`

tflo opened this issue ยท 0 comments

commented

Got this when I was attacked while using a teleport cloak and then closed the ToT frame (in combat):

1x [ADDON_ACTION_BLOCKED] AddOn 'TomeOfTeleportation' tried to call the protected function 'EquipItemByName()'
1x [ADDON_ACTION_BLOCKED] AddOn 'TomeOfTeleportation' tried to call the protected function 'EquipItemByName()'.
[string "@!BugGrabber/BugGrabber.lua"]:481: in function <!BugGrabber/BugGrabber.lua:481>
[string "=[C]"]: in function `EquipItemByName'
[string "@TomeOfTeleportation/TomeOfTeleportation.lua"]:1996: in function `?'
[string "@TomeOfTeleportation/TomeOfTeleportation.lua"]:1852: in function `TeleporterRestoreEquipment'
[string "@TomeOfTeleportation/TomeOfTeleportation.lua"]:2099: in function <...eTomeOfTeleportation/TomeOfTeleportation.lua:2096>
[string "=[C]"]: in function `Hide'
[string "@TomeOfTeleportation/TomeOfTeleportation.lua"]:1877: in function <...eTomeOfTeleportation/TomeOfTeleportation.lua:1872>

Locals:
_ = Frame {
 RegisterEvent = <function> defined @!BugGrabber/BugGrabber.lua:487
 0 = <userdata>
 UnregisterEvent = <function> defined @!BugGrabber/BugGrabber.lua:487
 SetScript = <function> defined @!BugGrabber/BugGrabber.lua:487
}
event = "ADDON_ACTION_BLOCKED"
events = <table> {
 ADDON_ACTION_BLOCKED = <function> defined @!BugGrabber/BugGrabber.lua:553
 ADDON_ACTION_FORBIDDEN = <function> defined @!BugGrabber/BugGrabber.lua:553
 PLAYER_LOGIN = <function> defined @!BugGrabber/BugGrabber.lua:547
 LUA_WARNING = <function> defined @!BugGrabber/BugGrabber.lua:562
 ADDON_LOADED = <function> defined @!BugGrabber/BugGrabber.lua:507
}

Maybe a test for InCombatLockdown on reequip could avoid this. I mean, the result would be the same, but the BugSack icon would stay green ;)