ChocolateBar Broker Display

ChocolateBar Broker Display

1M Downloads

[Bug Report] bug in Jostle.lua

realyigo opened this issue ยท 0 comments

commented

What game version did the bug occur in?

Wrath of the Lich King Classic

Troubleshooting

  • I have verified that ChocolateBar is up to date.
  • I have tried to reproduce the bug with no other addons loaded.
  • I have verified that the issue hasn't yet been reported.

Describe the bug.

in function
function Jostle:PLAYER_REGEN_DISABLED()
ChocolateBar:Debug("PLAYER_REGEN_DISABLED")
inCombat = true
end
inCombat = true will not change the value in local inCombat , but expose inCombat to global.
we need to declare local inCombat ahead function Jostle:PLAYER_REGEN_DISABLED() to fix it

Steps to reproduce.

/dump inCombat

Expected behavior.

not expose inCombat to global

Errors