From bbeaa542805507eb46f4312b0f17cd679f0ea201 Mon Sep 17 00:00:00 2001 From: Karrz1 <127596890+Karrz1@users.noreply.github.com> Date: Fri, 13 Nov 2026 20:21:46 +0000 Subject: [PATCH] fix: stop Classic Auto Shot after successful Scatter Shot From KylRikul/TrinityCore, commit 5744e28093, by KylRikul (GPL-2.0). Thank you! --- src/server/game/Spells/Spell.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 33a859c057..488987e968 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -4527,7 +4527,16 @@ void Spell::finish(SpellCastResult result) // Stop Attack for some spells if (m_spellInfo->HasAttribute(SPELL_ATTR0_CANCELS_AUTO_ATTACK_COMBAT)) + { unitCaster->AttackStop(); + // Classic Scatter Shot must also stop Auto Shot. AttackStop only + // clears the melee victim, leaving the ranged autorepeat running. + if (m_spellInfo->Id == 19503 && m_spellInfo->HasAttribute(SPELL_ATTR15_UNK13) + && m_spellInfo->SpellFamilyName == SPELLFAMILY_HUNTER && unitCaster->GetClass() == CLASS_HUNTER) + if (Spell const* autoShot = unitCaster->GetCurrentSpell(CURRENT_AUTOREPEAT_SPELL)) + if (autoShot->GetSpellInfo()->Id == 75) + unitCaster->CancelAutoRepeatSpell(); + } } template