mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 00:23:48 +00:00
fix(Core/Spell) Removed Prey on the Weak triggering on dead targets (#21611)
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user