Skip to content

Commit

Permalink
Fix class dispel abilities for Shaman and Paladin
Browse files Browse the repository at this point in the history
Fixes #726
Fixes #730
  • Loading branch information
jordonwow committed May 27, 2024
1 parent 67fd3fb commit c540d85
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ read_globals = {
"InCombatLockdown",
"InterfaceOptionsFrame_OpenToCategory",
"IsInInstance",
"IsPlayerSpell",
"issecurevariable",
"IsUsableSpell",
"KuiNameplates",
Expand Down Expand Up @@ -85,6 +86,7 @@ read_globals = {
"UnitIsUnit",
"UnitReaction",
"WOW_PROJECT_BURNING_CRUSADE_CLASSIC",
"WOW_PROJECT_CATACLYSM_CLASSIC",
"WOW_PROJECT_CLASSIC",
"WOW_PROJECT_ID",
"WOW_PROJECT_MAINLINE",
Expand Down
11 changes: 11 additions & 0 deletions BigDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,17 @@ else
Curse = function() return IsUsableSpell(GetSpellInfo(374251)) end,
},
}
if WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC then
classDispel.SHAMAN = {
Magic = function() return IsPlayerSpell(77130) end,
Curse = true,
}
classDispel.PALADIN = {
Magic = function() return IsPlayerSpell(53551) end,
Poison = true,
Disease = true,
}
end
local _, class = UnitClass("player")
BigDebuffs.dispelTypes = classDispel[class]
end
Expand Down

0 comments on commit c540d85

Please sign in to comment.