[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:
Schmoozerd 2011-01-18 13:46:10 +03:00 committed by VladimirMangos
parent 3bb16cacdb
commit 54cb8f1a63
5 changed files with 21 additions and 6 deletions

View file

@ -1985,7 +1985,7 @@ void Creature::SetInCombatWithZone()
if (pPlayer->isGameMaster())
continue;
if (pPlayer->isAlive())
if (pPlayer->isAlive() && !IsFriendlyTo(pPlayer))
{
pPlayer->SetInCombatWith(this);
AddThreat(pPlayer);