fix(Core/Combat): Immediately reselect victim after taunt aura update (#25254)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-03-27 16:33:55 -05:00
committed by GitHub
parent 1520a6f055
commit 8ea9252d76
3 changed files with 250 additions and 0 deletions

View File

@@ -540,6 +540,11 @@ void ThreatManager::TauntUpdate()
// taunt aura update also re-evaluates all suppressed states (retail behavior)
EvaluateSuppressed(true);
// immediately reselect victim so taunt takes effect without waiting
// for the next THREAT_UPDATE_INTERVAL (1 s) timer tick
UpdateVictim();
_updateTimer = THREAT_UPDATE_INTERVAL;
}
void ThreatManager::SetTauntStateForTesting(

View File

@@ -182,6 +182,8 @@ public:
// Test-only: directly set taunt state on a threat ref
// Uses uint32 to avoid incomplete-type issue with ThreatReference
void SetTauntStateForTesting(Unit* target, uint32 state);
// Immediately reselect victim (bypasses 1-second Update timer)
void UpdateVictimForTesting() { UpdateVictim(); }
///== REDIRECT SYSTEM ==
void RegisterRedirectThreat(uint32 spellId, ObjectGuid const& victim, uint32 pct);