You could add broken spells into the "disable" table via world database?
local BannedSpells = {SPELL_ID_1, SPELL_ID_2};
function CheckBannedSpells(event, player, spell, check)
for i, v in ipairs(BannedSpells) do
if(spell:GetId() == v) then
spell:cancel()
return false;
end
end
end
RegisterPlayerEvent(5, CheckBannedSpells)
That table doesn't exist for MaNGOS TBC, I don't think it exists at all by that name. That's just renamed by TrinityCore.
I believe the table is spell_learn_spell