Skip to content

Commit

Permalink
Fix pager API (raid cursor) on SoD
Browse files Browse the repository at this point in the history
  • Loading branch information
seblindfors committed Sep 26, 2024
1 parent d6f0f16 commit bb4172b
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ConsolePort/ConsolePort.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 110002
## Interface-Classic: 11502
## Interface-Classic: 11504
## Interface-Wrath: 30403
## Interface-Cata: 40400
## IconTexture: Interface\AddOns\ConsolePort\Assets\Textures\Logo\CP_Thumb
Expand Down
24 changes: 16 additions & 8 deletions ConsolePort/Controller/Pager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,14 @@ Pager.Env = {
if type == 'spell' then
local slot = self::GetActionSpellInfo(...)
if slot then
return ]]..(IsHarmfulSpell
and ('IsHarmfulSpell(slot, "spell")')
or ('IsSpellHarmful(id, %d)'):format(Enum.SpellBookSpellBank.Player)
)..[[;
return ]]..(function()
if CPAPI.IsClassicEraVersion then
return 'IsSpellHarmful(id)'
elseif CPAPI.IsClassicVersion then
return 'IsHarmfulSpell(slot, "spell")'
end
return ('IsSpellHarmful(id, %d)'):format(Enum.SpellBookSpellBank.Player)
end)()..[[;
end
elseif type == 'item' and id then
return IsHarmfulItem(id)
Expand All @@ -180,10 +184,14 @@ Pager.Env = {
if type == 'spell' then
local slot = self::GetActionSpellInfo(...)
if slot then
return ]]..(IsHelpfulSpell
and ('IsHelpfulSpell(slot, "spell")')
or ('IsSpellHelpful(id, %d)'):format(Enum.SpellBookSpellBank.Player)
)..[[;
return ]]..(function()
if CPAPI.IsClassicEraVersion then
return 'IsSpellHelpful(id)'
elseif CPAPI.IsClassicVersion then
return 'IsHelpfulSpell(slot, "spell")'
end
return ('IsSpellHelpful(id, %d)'):format(Enum.SpellBookSpellBank.Player)
end)()..[[;
end
elseif type == 'item' and id then
return IsHelpfulItem(id)
Expand Down
2 changes: 1 addition & 1 deletion ConsolePort_Bar/ConsolePort_Bar.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 110002
## Interface-Classic: 11502
## Interface-Classic: 11504
## Interface-Wrath: 30403
## Interface-Cata: 40400
## IconTexture: Interface\AddOns\ConsolePort\Assets\Textures\Logo\CP_Thumb
Expand Down
2 changes: 1 addition & 1 deletion ConsolePort_Config/ConsolePort_Config.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 110002
## Interface-Classic: 11502
## Interface-Classic: 11504
## Interface-Wrath: 30403
## Interface-Cata: 40400
## IconTexture: Interface\AddOns\ConsolePort\Assets\Textures\Logo\CP_Thumb
Expand Down
2 changes: 1 addition & 1 deletion ConsolePort_Cursor/ConsolePort_Cursor.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 110002
## Interface-Classic: 11502
## Interface-Classic: 11504
## Interface-Wrath: 30403
## Interface-Cata: 40400
## IconTexture: Interface\AddOns\ConsolePort\Assets\Textures\Logo\CP_Thumb
Expand Down
2 changes: 1 addition & 1 deletion ConsolePort_Keyboard/ConsolePort_Keyboard.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 110002
## Interface-Classic: 11502
## Interface-Classic: 11504
## Interface-Wrath: 30403
## Interface-Cata: 40400
## IconTexture: Interface\AddOns\ConsolePort\Assets\Textures\Logo\CP_Thumb
Expand Down
2 changes: 1 addition & 1 deletion ConsolePort_Mapper/ConsolePort_Mapper.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 110002
## Interface-Classic: 11502
## Interface-Classic: 11504
## Interface-Wrath: 30403
## Interface-Cata: 40400
## IconTexture: Interface\AddOns\ConsolePort\Assets\Textures\Logo\CP_Thumb
Expand Down
2 changes: 1 addition & 1 deletion ConsolePort_Menu/ConsolePort_Menu.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 110002
## Interface-Classic: 11502
## Interface-Classic: 11504
## Interface-Wrath: 30403
## Interface-Cata: 40400
## IconTexture: Interface\AddOns\ConsolePort\Assets\Textures\Logo\CP_Thumb
Expand Down
2 changes: 1 addition & 1 deletion ConsolePort_World/ConsolePort_World.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 110002
## Interface-Classic: 11502
## Interface-Classic: 11504
## Interface-Wrath: 30403
## Interface-Cata: 40400
## IconTexture: Interface\AddOns\ConsolePort\Assets\Textures\Logo\CP_Thumb
Expand Down

0 comments on commit bb4172b

Please sign in to comment.