*Revert 5675/43c0c883c44d back to 4821/9d0967884f0b way (seems to work properly now), thanks Gyullo

--HG--
branch : trunk
This commit is contained in:
maximius
2009-09-27 15:52:17 -07:00
parent 01be5d1860
commit 10231efc0f

View File

@@ -93,13 +93,12 @@ void CreatureAI::DoZoneInCombat(Creature* creature)
creature->AddThreat(pPlayer, 0.0f);
}
// 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)
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);
} */
}
}
}
}