Skip to content

Commit

Permalink
[9609] Send zoneUnderAttack from EventAI if creature is a guard.
Browse files Browse the repository at this point in the history
Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Mar 19, 2010
1 parent 72002ca commit 92d98d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/game/CreatureEventAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9608"
#define REVISION_NR "9609"
#endif // __REVISION_NR_H__

0 comments on commit 92d98d9

Please sign in to comment.