Skip to content

Commit

Permalink
Fixed not skipping unknown spells and items in icon evaluation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sellorio committed Mar 28, 2022
1 parent f7dae03 commit ba34295
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion scripts/publish.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CALL .\depublish.bat
mkdir "C:\Program Files (x86)\World of Warcraft\_retail_\Interface\AddOns\MegaMacro"
xcopy /e /i /exclude:..\.publishignore .. "C:\Program Files (x86)\World of Warcraft\_retail_\Interface\AddOns\MegaMacro"
xcopy /e /i /exclude:..\.publishignore .. "C:\Program Files (x86)\World of Warcraft\_retail_\Interface\AddOns\MegaMacro"
PAUSE
8 changes: 6 additions & 2 deletions src/engine/mega-macro-icon-evaluator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,12 @@ local function ComputeMacroIcon(macro, staticTexture, isStaticTextureFallback)

if ability ~= nil then
effectType, effectId, effectName, icon = GetAbilityData(ability)
target = tar
break

-- skip spells or items that do not exist
if effectType ~= "unknown" then
target = tar
break
end
end
elseif command.Type == "castsequence" then
local sequenceCode, tar = SecureCmdOptionParse(command.Body)
Expand Down

0 comments on commit ba34295

Please sign in to comment.