mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 04:37:06 +00:00
[7712] Fixed typo in EventAI for preventing aggro from civilians.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
4a32920b9d
commit
727f590f6e
2 changed files with 2 additions and 2 deletions
|
|
@ -1214,7 +1214,7 @@ void CreatureEventAI::MoveInLineOfSight(Unit *who)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_creature->isCivilian() && m_creature->IsNeutralToAll())
|
if (m_creature->isCivilian() || m_creature->IsNeutralToAll())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!m_creature->hasUnitState(UNIT_STAT_STUNNED) && who->isTargetableForAttack() &&
|
if (!m_creature->hasUnitState(UNIT_STAT_STUNNED) && who->isTargetableForAttack() &&
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7711"
|
#define REVISION_NR "7712"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue