Se débarrasser du SPAM de la roulette Mega Spell Bind (Mega Spell Bind roulette)

Tout ce qu’il vous faut pour vous débarrasser de ce spam infernal

Weak Aura :
Une bonne Weak Aura faite par un type malin qui vous donnera un message clair :
https://db.ascension.gg/?weakaura=186.rev:2

Créer un addon :
Allez dans le dossier où vous avez installé votre jeu, puis rendez-vous dans ce dossier :
~Ascension LauncherAscension
esourcesclientInterfaceAddOns
Créez un dossier et nommez-le NoForbiddenWarnings (nom choisi par ChatGPT)
Créez deux fichiers texte, renommez-les et changez leur extension :
NoForbiddenWarnings.toc
NoForbiddenWarnings.lua

Ouvrez NoForbiddenWarnings.toc avec le bloc-notes et collez ceci à l’intérieur :


## Interface: 30300
## Title: No Forbidden Warnings
## Notes: Hides custom yellow forbidden spell warnings
## Author: ChatGPT
NoForbiddenWarnings.lua

puis enregistrez (oui, l’auteur c’est ChatGPT, je ne vais pas apprendre le lua)

puis ouvrez NoForbiddenWarnings.lua et collez ceci à l’intérieur :


local f = CreateFrame("Frame")

local function matchesForbiddenMessage(text)
    if not text then return false end
    text = text:lower()

    return text:find("is now forbidden")
        or text:find("is now deadly")
        or text:find("is now perilous")
        or text:find("is now lethal")
        or text:find("is now a forbidden incantation")
        or text:find("is now a spell of certain demise")
        or text:find("is now ensnared by the curse")
        or text:find("avoid casting")
        or text:find("a dire warning")
        or text:find("the curse has moved")
        or text:find("the curse has found a new host")
        or text:find("heed the warning")
        or text:find("heed this omen")
        or text:find("winds of fate")
        or text:find("roulette has spun")
        or text:find("a new spell is bound by the roulette")
        or text:find("the forbidden seal has shifted")
        or text:find("fatal gamble")
        or text:find("next victim")
end

f:SetScript("OnUpdate", function()
    local numChildren = select("#", UIParent:GetChildren())
    for i = 1, numChildren do
        local child = select(i, UIParent:GetChildren())

        if type(child) == "table" and child:IsShown() and child.GetRegions then
            local regions = { child:GetRegions() }

            for _, region in ipairs(regions) do
                if type(region) == "table" and region.GetText then
                    local text = region:GetText()
                    if matchesForbiddenMessage(text) then
                        child:Hide()
                        break
                    end
                end
            end
        end
    end
end)

local original_PlaySound = PlaySound
PlaySound = function(id, ...)
    local strId = tostring(id)
    if strId:lower():find("raidbossemotewarning") then
        -- Bloque ce son
        return
    end
    return original_PlaySound(id, ...)
end

N’oubliez pas d’enregistrer

Pour se débarrasser du spam dans le chat :
faites un clic droit sur Général (General) > Autre (Other) et décochez Émote de Boss (Boss Emote)

Adapté d’un guide de BlipO publié sur db.ascension.gg.