From 54dba754835c07216636e33525ff58ce0f429ddf Mon Sep 17 00:00:00 2001 From: blinkysc <37940565+blinkysc@users.noreply.github.com> Date: Thu, 26 Feb 2026 12:00:33 -0600 Subject: [PATCH] fix(Core/Spells): Turn the Tables buff only applies to the rogue (#24896) Co-authored-by: blinkysc --- src/server/scripts/Spells/spell_rogue.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/server/scripts/Spells/spell_rogue.cpp b/src/server/scripts/Spells/spell_rogue.cpp index b0ffb02a6..832ec5c35 100644 --- a/src/server/scripts/Spells/spell_rogue.cpp +++ b/src/server/scripts/Spells/spell_rogue.cpp @@ -1046,13 +1046,19 @@ class spell_rog_turn_the_tables : public AuraScript }; // 52910, 52914, 52915 - Turn the Tables (proc) -class spell_rog_turn_the_tables_proc : public AuraScript +class spell_rog_turn_the_tables_proc : public SpellScript { - PrepareAuraScript(spell_rog_turn_the_tables_proc); + PrepareSpellScript(spell_rog_turn_the_tables_proc); + + void FilterTargets(std::list& targets) + { + targets.clear(); + targets.push_back(GetCaster()); + } void Register() override { - // No special handling needed - default behavior + OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_rog_turn_the_tables_proc::FilterTargets, EFFECT_0, TARGET_UNIT_CASTER_AREA_RAID); } };