Core/Spells: Implemented SPELL_ATTR5_IGNORE_AREA_EFFECT_PVP_CHECK

This commit is contained in:
Shauren authored and Ovahlord committed 2022-09-30 02:01:13 +02:00
1 parent 2c78751b5a
commit 86fbfb77f4
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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())