diff options
| author | Treeston <treeston.mmoc@gmail.com> | 2018-08-27 19:08:17 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-10-23 02:14:04 +0200 |
| commit | 392a644dc8562ea54b9c185a2776fceb1006e2cd (patch) | |
| tree | eec4d04885e582c39f0b88ea1cf0d87b4bb1015a /src/server/game/Spells/SpellEffects.cpp | |
| parent | 395f58d651c7c370522ead6ba9a3c684d91e3a66 (diff) | |
Core/Threat: Threat system adjustments:
* Online states are now re-evaluated before victim update instead of continuously. Closes #22226. Tagging #21501.
* Victim update now happens every 1s as opposed to every server tick unless current target goes away.
* Suppressed threat is no longer re-established until the victim gains additional threat (by hitting the target, for instance).
* Assistance threat is now split between non-controlled units threatened by target, as opposed to all units threatened by target.
(cherry picked from commit 5cea572a9ad524c6f28ff8519bee61d1ff4357d0)
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
| -rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index a7008eefae2..59090943a0b 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -3493,7 +3493,7 @@ void Spell::EffectSanctuary() { // in dungeons (or for nonplayers), reset this unit on all enemies' threat lists for (auto const& pair : unitTarget->GetThreatManager().GetThreatenedByMeList()) - pair.second->SetThreat(0.0f); + pair.second->ScaleThreat(0.0f); } // makes spells cast before this time fizzle |
