Skip to content

Commit

Permalink
Merge pull request #1 from grimmier378/Emu_Fix
Browse files Browse the repository at this point in the history
EMU fix
  • Loading branch information
rawmotion1 committed Feb 19, 2024
2 parents 29f420c + 3068e66 commit b95dd75
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions init.lua
Expand Up @@ -498,7 +498,14 @@ local function spellContext(n,s,t)
if ImGui.BeginPopupContextItem('##n') then
if ImGui.Selectable('\xee\xa1\xbd'..' Favorite') then addFavorite(s,t) end
ImGui.Separator()
if ImGui.Selectable('\xee\xa2\xb6'..' Inspect') then spell(s,t).Inspect() end
if ImGui.Selectable('\xee\xa2\xb6'..' Inspect') then
if mq.TLO.MacroQuest.BuildName()=='Emu' then
if mq.TLO.Me.Buff(n).ID() then mq.cmd('/nomodkey /altkey /notify BuffWindow Buff'..(s-1)..' leftmouseup') end
if mq.TLO.Me.Song(n).ID() then mq.cmd('/nomodkey /altkey /notify ShortDurationBuffWindow Buff'..(s-1)..' leftmouseup')end
else
spell(s,t).Inspect()
end
end
if ImGui.Selectable('\xee\xa1\xb2'..' Remove') then mq.cmdf('/removebuff %s', n) end
ImGui.Separator()
if ImGui.Selectable('\xee\x97\x8d'..' Block spell') then mq.cmdf('/blockspell add me %s', spell(s,t).Spell.ID()) end
Expand All @@ -515,7 +522,14 @@ local function favContext(n,s,t)
ImGui.Separator()
if ImGui.Selectable('\xef\x82\x8a'..' Unfavorite') then unFavorite(s,t) end
ImGui.Separator()
if ImGui.Selectable('\xee\xa2\xb6'..' Inspect') then spell(s,t).Inspect() end
if ImGui.Selectable('\xee\xa2\xb6'..' Inspect') then
if mq.TLO.MacroQuest.BuildName()=='Emu' then
if mq.TLO.Me.Buff(n).ID() then mq.cmd('/nomodkey /altkey /notify BuffWindow Buff'..(s-1)..' leftmouseup') end
if mq.TLO.Me.Song(n).ID() then mq.cmd('/nomodkey /altkey /notify ShortDurationBuffWindow Buff'..(s-1)..' leftmouseup')end
else
spell(s,t).Inspect()
end
end
if ImGui.Selectable('\xee\xa1\xb2'..' Remove') then mq.cmdf('/removebuff %s', n) end
ImGui.Separator()
if ImGui.Selectable('\xee\x97\x8d'..' Block spell') then mq.cmdf('/blockspell add me %s', spell(s,t).Spell.ID()) end
Expand Down

0 comments on commit b95dd75

Please sign in to comment.