Two more refactors I missed for #19930. Last ones for now, I promise.

(cherry picked from commit 62d5113252)
This commit is contained in:
treeston
2017-07-03 17:49:54 +02:00
committed by Shauren
parent 2c88d9f162
commit daf9c703c4
2 changed files with 5 additions and 5 deletions
@@ -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",