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:
@@ -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(
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user