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

This commit is contained in:
treeston authored and Ovahlord committed 2020-07-22 13:48:36 +02:00
1 parent f2592116ae
commit 618e604141
2 files changed
+5 -5

No files matched your search

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