Core/Spells: Implemented SPELL_ATTR5_IGNORE_AREA_EFFECT_PVP_CHECK
This commit is contained in:
1 parent
2c78751b5a
commit
86fbfb77f4
2 files changed
+2
-2
No files matched your search
@@ -3122,7 +3122,7 @@ bool WorldObject::IsValidAttackTarget(WorldObject const* target, SpellInfo const
|
||||
// additional checks - only PvP case
|
||||
if (playerAffectingAttacker && playerAffectingTarget)
|
||||
{
|
||||
if (playerAffectingTarget->IsPvP())
|
||||
if (playerAffectingTarget->IsPvP() || (bySpell && bySpell->HasAttribute(SPELL_ATTR5_IGNORE_AREA_EFFECT_PVP_CHECK)))
|
||||
return true;
|
||||
|
||||
if (playerAffectingAttacker->IsFFAPvP() && playerAffectingTarget->IsFFAPvP())
|
||||
|
||||
Reference in new issue
Block a user