mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 05:00:02 +00:00
Read spell fields through ClassicAPI instead of nampower
Replace GetSpellRecField (nampower) with the C_Spell field readers. libdebuff reads the dispel type with C_Spell.GetSpellDispelType. swingtimer detects on-next-swing spells with C_Spell.IsNextMeleeSpell, and the swing-reset rule with C_Spell.ResetsMeleeSwing. The on-next-swing check now covers both attribute bits, and the freeze check folds in the keep-swings attribute, both matching the server rule. Note: needs the ClassicAPI release that adds these functions. Bump PFUI_CLASSIC_API_MIN when that version is out.
This commit is contained in:
+3
-5
@@ -376,11 +376,9 @@ local function GetDebuffSlotMap(guid)
|
||||
local texture = libdebuff:GetSpellIcon(spellId)
|
||||
local stacks = (auraApps and auraApps[auraSlot] or 0) + 1
|
||||
local dtype = nil
|
||||
if GetSpellRecField then
|
||||
local dispelId = GetSpellRecField(spellId, "dispel")
|
||||
if dispelId and dispelId > 0 then
|
||||
dtype = dispelTypeMap[dispelId]
|
||||
end
|
||||
local dispelId = C_Spell.GetSpellDispelType(spellId)
|
||||
if dispelId and dispelId > 0 then
|
||||
dtype = dispelTypeMap[dispelId]
|
||||
end
|
||||
map[displaySlot] = {
|
||||
auraSlot = auraSlot,
|
||||
|
||||
Reference in New Issue
Block a user