From 84a6c8b9dcab5e0f8eda796b27385bbef338de08 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Wed, 4 Nov 2020 09:22:59 -0300 Subject: [PATCH] Adding again the option to remove enemy players from battlegrounds. --- frames/window_options2_sections.lua | 9 +++++++++ functions/slash.lua | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/frames/window_options2_sections.lua b/frames/window_options2_sections.lua index 5e7822dd..b823c58c 100644 --- a/frames/window_options2_sections.lua +++ b/frames/window_options2_sections.lua @@ -402,6 +402,15 @@ do name = Loc ["STRING_OPTIONS_BG_UNIQUE_SEGMENT"], desc = Loc ["STRING_OPTIONS_BG_UNIQUE_SEGMENT_DESC"], }, + {--battleground show enemies + type = "toggle", + get = function() return _detalhes.pvp_as_group end, + set = function (self, fixedparam, value) + _detalhes.pvp_as_group = value + end, + name = Loc ["STRING_OPTIONS_BG_ALL_ALLY"], + desc = Loc ["STRING_OPTIONS_BG_ALL_ALLY_DESC"], + }, {type = "blank"}, diff --git a/functions/slash.lua b/functions/slash.lua index 91136ec0..0f040721 100644 --- a/functions/slash.lua +++ b/functions/slash.lua @@ -1602,7 +1602,7 @@ Damage Update Status: @INSTANCEDAMAGESTATUS else Details:Msg("coach disabled.") - Details.DisableCoach() + Details.Coach.Disable() end elseif (msg == "9") then