mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[11069] Set aggro for player controlled units only at zone aggro.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
d699d0973b
commit
5951d77a0d
2 changed files with 2 additions and 2 deletions
|
|
@ -7724,7 +7724,7 @@ void Unit::SetInCombatState(bool PvP, Unit* enemy)
|
|||
pCreature->AI()->EnterCombat(enemy);
|
||||
|
||||
// Some bosses are set into combat with zone
|
||||
if (GetMap()->IsDungeon() && (pCreature->GetCreatureInfo()->flags_extra & CREATURE_FLAG_EXTRA_AGGRO_ZONE))
|
||||
if (GetMap()->IsDungeon() && (pCreature->GetCreatureInfo()->flags_extra & CREATURE_FLAG_EXTRA_AGGRO_ZONE) && enemy && enemy->IsControlledByPlayer())
|
||||
pCreature->SetInCombatWithZone();
|
||||
|
||||
if (InstanceData* mapInstance = GetInstanceData())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue