mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01:00
*Revert 5675/43c0c883c44d back to 4821/9d0967884f0b way (seems to work properly now), thanks Gyullo
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
} */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user