Core/Threat: Fix by faq.
Turning gm on, now drops threat. Dead mobs no longer holds threat on player. Also fixed some Engrish.
This commit is contained in:
@@ -535,6 +535,10 @@ void ThreatManager::processThreatEvent(ThreatRefStatusChangeEvent* threatRefStat
|
||||
setCurrentVictim(NULL);
|
||||
setDirty(true);
|
||||
}
|
||||
if (getOwner() && getOwner()->IsInWorld())
|
||||
if (Unit* target = ObjectAccessor::GetUnit(*getOwner(), hostilRef->getUnitGuid()))
|
||||
if (getOwner()->IsInMap(target))
|
||||
getOwner()->SendRemoveFromThreatListOpcode(hostilRef);
|
||||
iThreatContainer.remove(hostilRef);
|
||||
iThreatOfflineContainer.addReference(hostilRef);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user