[9609] Send zoneUnderAttack from EventAI if creature is a guard.

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-03-20 00:53:01 +01:00
parent b537285260
commit c9880047c9
2 changed files with 8 additions and 1 deletions

View file

@ -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;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9608"
#define REVISION_NR "9609"
#endif // __REVISION_NR_H__