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

This commit is contained in:
treeston
2017-07-03 17:49:54 +02:00
parent 2739a5c5f5
commit 62d5113252
2 changed files with 5 additions and 5 deletions

View File

@@ -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",