From c9880047c93669c2440ee2532d2be55f7d1b2d1a Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Sat, 20 Mar 2010 00:53:01 +0100 Subject: [PATCH] [9609] Send zoneUnderAttack from EventAI if creature is a guard. Signed-off-by: NoFantasy --- src/game/CreatureEventAI.cpp | 7 +++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/game/CreatureEventAI.cpp b/src/game/CreatureEventAI.cpp index a564f8984..ae0a67446 100644 --- a/src/game/CreatureEventAI.cpp +++ b/src/game/CreatureEventAI.cpp @@ -875,6 +875,13 @@ void CreatureEventAI::JustDied(Unit* killer) { Reset(); + if (m_creature->isGuard()) + { + //Send Zone Under Attack message to the LocalDefense and WorldDefense Channels + if (Player* pKiller = killer->GetCharmerOrOwnerPlayerOrPlayerItself()) + m_creature->SendZoneUnderAttackMessage(pKiller); + } + if (bEmptyList) return; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 00cb3e0b3..0a0374acd 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9608" + #define REVISION_NR "9609" #endif // __REVISION_NR_H__