diff --git a/Plater.lua b/Plater.lua index aa5d66f9..325a9164 100644 --- a/Plater.lua +++ b/Plater.lua @@ -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 @@ -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)