fix(Core/Spells): Killing Spree should not affect invisible units (#7191)

This commit is contained in:
KiK0
2021-08-06 02:50:27 -07:00
committed by GitHub
parent 1cd3af96b3
commit 31e41890e3

View File

@@ -398,7 +398,7 @@ public:
if (Unit* target = ObjectAccessor::GetUnit(*GetTarget(), guid))
{
// xinef: target may be no longer valid
if (!GetTarget()->IsValidAttackTarget(target))
if (!GetTarget()->IsValidAttackTarget(target) || target->HasStealthAura() || target->HasInvisibilityAura())
{
_targets.remove(guid);
continue;