mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-19 14:39:43 -04:00
Two more refactors I missed for #19930. Last ones for now, I promise.
(cherry picked from commit 62d5113252)
This commit is contained in:
@@ -445,7 +445,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 %s modify threat for %s, value %i",
|
||||
|
||||
Reference in New Issue
Block a user