fix(Core/Spell) Removed Prey on the Weak triggering on dead targets (#21611)

This commit is contained in:
vrachv
2025-02-25 22:52:23 +00:00
committed by GitHub
parent 9fcd9b3684
commit 0ff1a9756c

View File

@@ -508,7 +508,7 @@ class spell_rog_prey_on_the_weak : public AuraScript
if (!victim && target->IsPlayer())
victim = target->ToPlayer()->GetSelectedUnit();
if (victim && (target->GetHealthPct() > victim->GetHealthPct()))
if (victim && victim->IsAlive() && (target->GetHealthPct() > victim->GetHealthPct()))
{
if (!target->HasAura(SPELL_ROGUE_PREY_ON_THE_WEAK))
{