Skip to content

Commit

Permalink
- actually truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
cont1nuity committed Dec 4, 2024
1 parent 1dbc76c commit 27d9624
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Plater.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5224,9 +5224,6 @@ function Plater.OnInit() --private --~oninit ~init
self.Spark:SetAlpha (profile.cast_statusbar_spark_alpha)
PixelUtil.SetSize(self.Spark, profile.cast_statusbar_spark_width, self:GetHeight())

--cut the spell name text to fit within the castbar
Plater.UpdateSpellNameSize (self.Text, unitFrame.ActorType, nil, isInCombat)

Plater.UpdateCastbarTargetText (self)

--castbar icon
Expand Down Expand Up @@ -5282,6 +5279,9 @@ function Plater.OnInit() --private --~oninit ~init

self.Text:SetText(self.SpellNameRenamed)

--cut the spell name text to fit within the castbar
Plater.UpdateSpellNameSize (self.Text, unitFrame.ActorType, nil, isInCombat)

-- in some occasions channeled casts don't have a CLEU entry... check this here
if (unitFrame.ActorType == "enemynpc" and event == "UNIT_SPELLCAST_CHANNEL_START" and (not DB_CAPTURED_SPELLS[self.spellID] or DB_CAPTURED_SPELLS[self.spellID].isChanneled == nil)) then
parserFunctions.SPELL_CAST_SUCCESS (nil, "SPELL_CAST_SUCCESS", nil, unitFrame[MEMBER_GUID], unitFrame.unitNameInternal, 0x00000000, nil, nil, nil, nil, nil, self.spellID, nil, nil, nil, nil, nil, nil, nil, nil, nil)
Expand Down

0 comments on commit 27d9624

Please sign in to comment.