Core/Spells: Implemented SPELL_ATTR5_IGNORE_AREA_EFFECT_PVP_CHECK

Port From (https://github.com/TrinityCore/TrinityCore/commit/d71ca7a8f5aab79a7ee662dbc5632a0de7dede3f)
This commit is contained in:
hondacrx
2022-06-01 13:54:41 -04:00
parent c971cae3bb
commit da9cd08caa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2641,7 +2641,7 @@ namespace Game.Entities
// additional checks - only PvP case
if (playerAffectingAttacker && playerAffectingTarget)
{
if (playerAffectingTarget.IsPvP())
if (playerAffectingTarget.IsPvP() || (bySpell != null && bySpell.HasAttribute(SpellAttr5.IgnoreAreaEffectPvpCheck)))
return true;
if (playerAffectingAttacker.IsFFAPvP() && playerAffectingTarget.IsFFAPvP())