mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Core/Unit): Added bluewall AoE check (#17064)
* Added bluewall AoE check - AoE spells/abilities done by non-flagged players now has no effect on pvp flagged players. * Crash fix * Update Unit.cpp Allow spells with flag "SPELL_ATTR5_IGNORE_AREA_EFFECT_PVP_CHECK" to pass this check.
This commit is contained in:
@@ -13956,6 +13956,9 @@ bool Unit::_IsValidAttackTarget(Unit const* target, SpellInfo const* bySpell, Wo
|
||||
// additional checks - only PvP case
|
||||
if (playerAffectingAttacker && playerAffectingTarget)
|
||||
{
|
||||
if (!IsPvP() && bySpell && bySpell->IsAffectingArea() && !bySpell->HasAttribute(SPELL_ATTR5_IGNORE_AREA_EFFECT_PVP_CHECK))
|
||||
return false;
|
||||
|
||||
if (target->IsPvP())
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user