Skip to content

Commit

Permalink
General bug fixes for Vanilla and Wrath. (#972)
Browse files Browse the repository at this point in the history
Updated experiments framework for Vanilla and Wrath.
  • Loading branch information
Cidan committed May 28, 2023
1 parent 62834ed commit 2c6b69b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
6 changes: 5 additions & 1 deletion AdiBags_Vanilla.toc
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ libs\LibSharedMedia-3.0\lib.xml

libs\LibDataBroker-1.1\LibDataBroker-1.1.lua

Localization.lua
core\EventHandlers.lua
core\Boot.lua

Localization.lua

core\Experiments.lua
core\Fonts.lua
core\Constants.lua
core\Utility.lua
Expand Down
6 changes: 5 additions & 1 deletion AdiBags_Wrath.toc
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ libs\LibSharedMedia-3.0\lib.xml

libs\LibDataBroker-1.1\LibDataBroker-1.1.lua

Localization.lua
core\EventHandlers.lua
core\Boot.lua

Localization.lua

core\Experiments.lua
core\Fonts.lua
core\Constants.lua
core\Utility.lua
Expand Down
14 changes: 12 additions & 2 deletions modules/DataSource.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,24 @@ function mod:OnEnable()
end

function mod:BANKFRAME_OPENED(e, kind)
if kind == Enum.PlayerInteractionType.Banker then
if addon.isRetail or addon.isWrath then
if kind == Enum.PlayerInteractionType.Banker then
self.atBank = true
return self:Update()
end
else
self.atBank = true
return self:Update()
end
end

function mod:BANKFRAME_CLOSED(e, kind)
if kind == Enum.PlayerInteractionType.Banker then
if addon.isRetail or addon.isWrath then
if kind == Enum.PlayerInteractionType.Banker then
self.atBank = false
return self:Update()
end
else
self.atBank = false
return self:Update()
end
Expand Down

0 comments on commit 2c6b69b

Please sign in to comment.