diff options
| author | maximius <none@none> | 2009-09-15 19:47:18 -0700 |
|---|---|---|
| committer | maximius <none@none> | 2009-09-15 19:47:18 -0700 |
| commit | 88d632d153f6903c8224241d20fdb7a318f9cba9 (patch) | |
| tree | d054517c39224524e73e54f32cafe67c11c7267f /src | |
| parent | 1870644bf75f21567eaf07e1f8bc0eb07734fa36 (diff) | |
*Disable commit 4821 / 9d0967884f0b (caused some NPCs to not regenerate HP when they should), found by Gyullo and tested by Manuel
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/CreatureAI.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/CreatureAI.cpp b/src/game/CreatureAI.cpp index a3a903c23a6..a846d392d4c 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); - } + } */ } } } |
