Core/Auras: Added serverside checking for UNIT_FLAG_PACIFIED when attempting to start melee attack

Closes #8623
This commit is contained in:
Shauren committed 2013-10-22 17:09:41 +02:00
1 parent 3e12fe84c8
commit 06f5011071
2 files changed
+6

No files matched your search

+3
View File
@@ -8914,6 +8914,9 @@ bool Unit::Attack(Unit* victim, bool meleeAttack)
if (GetTypeId() == TYPEID_PLAYER && IsMounted())
return false;
if (HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PACIFIED))
return false;
// nobody can attack GM in GM-mode
if (victim->GetTypeId() == TYPEID_PLAYER)
{