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:
Ovahlord committed 2021-04-21 18:51:34 +02:00
1 parent e17761777c
commit 9ff4bbd085
7 files changed
+97 -45

No files matched your search

+3
View File
@@ -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)
{