fix(Core/Spells): Killing Spree should not affect invisible units (#7191)
This commit is contained in:
@@ -398,7 +398,7 @@ public:
|
|||||||
if (Unit* target = ObjectAccessor::GetUnit(*GetTarget(), guid))
|
if (Unit* target = ObjectAccessor::GetUnit(*GetTarget(), guid))
|
||||||
{
|
{
|
||||||
// xinef: target may be no longer valid
|
// xinef: target may be no longer valid
|
||||||
if (!GetTarget()->IsValidAttackTarget(target))
|
if (!GetTarget()->IsValidAttackTarget(target) || target->HasStealthAura() || target->HasInvisibilityAura())
|
||||||
{
|
{
|
||||||
_targets.remove(guid);
|
_targets.remove(guid);
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user