mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[9609] Send zoneUnderAttack from EventAI if creature is a guard.
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
b537285260
commit
c9880047c9
2 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9608"
|
||||
#define REVISION_NR "9609"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue