Skip to content

Commit

Permalink
Fix for spell ids
Browse files Browse the repository at this point in the history
  • Loading branch information
artscout committed Sep 22, 2024
1 parent bb94f3f commit 4d37698
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Broker_Portals.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Notes: Provides access to all Portal and Teleport spells on right click of one button.
## Author: CrazyBenny of Stormrage-EU and Bissental on FlameGor-EU
## LastUpdate: 2024-09-22T02:09:00Z
## Version: 1.13.12
## Version: 1.13.12a
## OptionalDeps: LibDBIcon-1.0

## SavedVariables: PortalsDB
Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
1.13.12a
- Wrong function call fix

1.13.12
- Begin rework menu system

Expand Down
7 changes: 3 additions & 4 deletions portals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -488,14 +488,13 @@ local function GenerateMenuEntries(itemType, itemList, menuCategory)
if itemType == "spell" then
for _, unTransSpell in ipairs(itemList) do
if IsPlayerSpell(unTransSpell[1]) then
local spellId, spellName
local spell, _, spellIcon = GetSpellInfo(unTransSpell[1])
local spellName
local spell, _, spellIcon, _, _, _, spellId = GetSpellInfo(unTransSpell[1])
if type(spell) == "table" then
spellId = findSpell(spell.name)
spellId = spell.spellID
spellIcon = spell.iconID
spellName = spell.name
else
spellId = findSpell(spell)
spellName = spell
end

Expand Down

0 comments on commit 4d37698

Please sign in to comment.