mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[11032] Implement CREATURE_FLAG_EXTRA_AGGRO_ZONE.
This let control zone wide aggro in DB data instead need special script code. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
3bb16cacdb
commit
54cb8f1a63
5 changed files with 21 additions and 6 deletions
|
|
@ -1985,7 +1985,7 @@ void Creature::SetInCombatWithZone()
|
|||
if (pPlayer->isGameMaster())
|
||||
continue;
|
||||
|
||||
if (pPlayer->isAlive())
|
||||
if (pPlayer->isAlive() && !IsFriendlyTo(pPlayer))
|
||||
{
|
||||
pPlayer->SetInCombatWith(this);
|
||||
AddThreat(pPlayer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue