From 88d632d153f6903c8224241d20fdb7a318f9cba9 Mon Sep 17 00:00:00 2001 From: maximius Date: Tue, 15 Sep 2009 19:47:18 -0700 Subject: [PATCH] *Disable commit 4821 / 9d0967884f0b (caused some NPCs to not regenerate HP when they should), found by Gyullo and tested by Manuel --HG-- branch : trunk --- src/game/CreatureAI.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/CreatureAI.cpp b/src/game/CreatureAI.cpp index a3a903c23a..a846d392d4 100644 --- a/src/game/CreatureAI.cpp +++ b/src/game/CreatureAI.cpp @@ -93,12 +93,13 @@ void CreatureAI::DoZoneInCombat(Creature* creature) creature->AddThreat(pPlayer, 0.0f); } - for(Unit::ControlList::const_iterator itr = pPlayer->m_Controlled.begin(); itr != pPlayer->m_Controlled.end(); ++itr) + // TC2 commit 4821 / 9d0967884f0b, disabled (causes some NPCs to not regenerate HP): + /* for(Unit::ControlList::const_iterator itr = pPlayer->m_Controlled.begin(); itr != pPlayer->m_Controlled.end(); ++itr) { creature->SetInCombatWith(*itr); (*itr)->SetInCombatWith(creature); creature->AddThreat(*itr, 0.0f); - } + } */ } } }