mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 04:00:02 +00:00
Fixed missing ranks.
- Added a new method to display spellrank when casting spells (nampower GetSpellRecField)
This commit is contained in:
+7
-2
@@ -127,7 +127,12 @@ pfUI:RegisterModule("castbar", "vanilla", function ()
|
||||
texture = castData.icon
|
||||
startTime = castData.startTime * 1000
|
||||
endTime = castData.endTime * 1000
|
||||
nameSubtext = ""
|
||||
-- Try to get rank from spell DB via spellID (nameSubtext is not stored in libdebuff_casts)
|
||||
if castData.spellID and GetSpellRecField then
|
||||
nameSubtext = GetSpellRecField(castData.spellID, "rank") or ""
|
||||
else
|
||||
nameSubtext = ""
|
||||
end
|
||||
if castData.event == "CHANNEL" then
|
||||
channel = cast
|
||||
end
|
||||
@@ -390,4 +395,4 @@ pfUI:RegisterModule("castbar", "vanilla", function ()
|
||||
|
||||
UpdateMovable(pfUI.castbar.focus)
|
||||
end
|
||||
end)
|
||||
end)
|
||||
Reference in New Issue
Block a user