AdvancedInterfaceOptions

AdvancedInterfaceOptions

10M Downloads

"Floating Combat Text on Me" ONLY "Leave/Enter Combat"

Vaits opened this issue ยท 2 comments

commented

Thanks for the Addon! is it possible to turn on "Floating Combat Text on Me" to show ONLY "Enter/Leave Combat"? When "Floating Combat Text on Me" is turned on, it always includes healing and damage received. I tried to use the CVar Browser to edit this, but I couldn't find options for that. Help and infos are appreciated! I'm using the Addon for retail WoW.
(wasn't able to ask this on curseforge - parserror)

commented

To disable healing and damage received you'd have to use this script with https://addon.bool.no/ or REHack

local events = {
	"HEAL",
	"HEAL_CRIT",
	"PERIODIC_HEAL",
	"PERIODIC_HEAL_CRIT",
	"DAMAGE",
	"DAMAGE_CRIT",
	"SPELL_DAMAGE",
	"SPELL_DAMAGE_CRIT",
}

local function OnEvent(self, event, addon)
	if addon == "Blizzard_CombatText" then
		for _, v in pairs(events) do
			COMBAT_TEXT_TYPE_INFO[v].show = false
		end
	end
end

local f = CreateFrame("Frame")
f:RegisterEvent("ADDON_LOADED")
f:SetScript("OnEvent", OnEvent)
commented

It works like a charm! Thank you very much for the fast and helpful coding!