mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +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())
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11068"
|
||||
#define REVISION_NR "11069"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue