Core/Spells: ported implementations of SPELL_AURA_DISABLE_CASTING_EXCEPT_ABILITIES and SPELL_AURA_DISABLE_ATTACKING_EXCEPT_ABILITIES from master branch
closes #93
This commit is contained in:
1 parent
e17761777c
commit
9ff4bbd085
7 files changed
+97
-45
No files matched your search
@@ -5588,6 +5588,9 @@ bool Unit::Attack(Unit* victim, bool meleeAttack)
|
||||
if (creature && creature->IsInEvadeMode())
|
||||
return false;
|
||||
|
||||
if (HasAuraType(SPELL_AURA_DISABLE_ATTACKING_EXCEPT_ABILITIES))
|
||||
return false;
|
||||
|
||||
// nobody can attack GM in GM-mode
|
||||
if (victim->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user