aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/SmartScripts
diff options
context:
space:
mode:
authortreeston <treeston.mmoc@gmail.com>2017-07-03 17:49:54 +0200
committertreeston <treeston.mmoc@gmail.com>2017-07-03 17:49:54 +0200
commit62d51132524b5afff13371ccd13df556dd545bef (patch)
tree0a266d36a47c2941d71ab4df884b0df3ed227117 /src/server/game/AI/SmartScripts
parent2739a5c5f5d5a359eee4eef1a6486ddcaf24faaf (diff)
Two more refactors I missed for #19930. Last ones for now, I promise.
Diffstat (limited to 'src/server/game/AI/SmartScripts')
-rw-r--r--src/server/game/AI/SmartScripts/SmartScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp
index 3072ef31425..7b7bb00416d 100644
--- a/src/server/game/AI/SmartScripts/SmartScript.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScript.cpp
@@ -459,7 +459,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
if (!me)
break;
- for (auto* ref : me->GetThreatManager().GetUnsortedThreatList())
+ for (auto* ref : me->GetThreatManager().GetModifiableThreatList())
{
ref->ModifyThreatByPercent(std::max<int32>(-100,int32(e.action.threatPCT.threatINC) - int32(e.action.threatPCT.threatDEC)));
TC_LOG_DEBUG("scripts.ai", "SmartScript::ProcessAction:: SMART_ACTION_THREAT_ALL_PCT: Creature guidLow %u modify threat for unit %u, value %i",