Skip to content

Commit

Permalink
Fix misdirect bindings for 11.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Oppzippy committed Aug 14, 2024
1 parent cd10cf8 commit 3947a38
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Bindings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ local TankMD = AceAddon:GetAddon("TankMD")

local _, class = UnitClass("player")
local spellId = TankMD:GetMisdirectSpellID(class)
local spell = GetSpellInfo(spellId)
local GetSpellName = GetSpellInfo or C_Spell.GetSpellName
local spellName = GetSpellName(spellId)
local roleKey = TankMD:GetMisdirectTargetRole(class)

_G["BINDING_HEADER_TANKMD"] = L.title

_G["BINDING_NAME_CLICK TankMDButton1:LeftButton"] = L.to_first:format(spell, L[roleKey])
_G["BINDING_NAME_CLICK TankMDButton2:LeftButton"] = L.to_second:format(spell, L[roleKey])
_G["BINDING_NAME_CLICK TankMDButton3:LeftButton"] = L.to_third:format(spell, L[roleKey])
_G["BINDING_NAME_CLICK TankMDButton4:LeftButton"] = L.to_fourth:format(spell, L[roleKey])
_G["BINDING_NAME_CLICK TankMDButton5:LeftButton"] = L.to_fifth:format(spell, L[roleKey])
_G["BINDING_NAME_CLICK TankMDButton1:LeftButton"] = L.to_first:format(spellName, L[roleKey])
_G["BINDING_NAME_CLICK TankMDButton2:LeftButton"] = L.to_second:format(spellName, L[roleKey])
_G["BINDING_NAME_CLICK TankMDButton3:LeftButton"] = L.to_third:format(spellName, L[roleKey])
_G["BINDING_NAME_CLICK TankMDButton4:LeftButton"] = L.to_fourth:format(spellName, L[roleKey])
_G["BINDING_NAME_CLICK TankMDButton5:LeftButton"] = L.to_fifth:format(spellName, L[roleKey])

0 comments on commit 3947a38

Please sign in to comment.