[3.3.5] Combat/Threat rewrite - prep & refactor (#19966)

* Combat/Threat rewrite (PR #19930) prep work. Mostly refactors, and a compatibility layer on ThreatManager/HostileReference that allows scripts to be changed already.

(cherry picked from commit e2a1ccd118)
This commit is contained in:
Treeston
2017-07-01 20:18:02 +02:00
committed by Shauren
parent 2c99678118
commit 8be23fcbbd
187 changed files with 981 additions and 1133 deletions

View File

@@ -323,7 +323,7 @@ public:
if (Unit* target = me->SelectNearestPlayer(200.0f))
{
me->AddThreat(target, 0.0f);
AddThreat(target, 0.0f);
me->SetInCombatWith(target);
target->SetInCombatWith(me);
DoStartMovement(target);

View File

@@ -173,7 +173,7 @@ class npc_sc_millhouse_manastorm : public CreatureScript
me->RemoveAllAuras();
me->CombatStop(true);
me->DeleteThreatList();
me->GetThreatManager().ClearAllThreat();
switch (pointId)
{