mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 19:53:02 -04:00
Two more refactors I missed for #19930. Last ones for now, I promise.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user