fix(Scripts/HyjalSummit): Prevent Hyjal Bosses from talking when talking when dead (#24572)

This commit is contained in:
Gultask
2026-02-01 13:09:41 -03:00
committed by GitHub
parent f27a1e2619
commit 6dfe65304e
4 changed files with 4 additions and 4 deletions

View File

@@ -117,7 +117,7 @@ public:
void KilledUnit(Unit* victim) override
{
if (!_recentlySpoken && victim->IsPlayer())
if (!_recentlySpoken && victim->IsPlayer() && me->IsAlive())
{
Talk(SAY_ONSLAY);
_recentlySpoken = true;

View File

@@ -91,7 +91,7 @@ public:
void KilledUnit(Unit * victim) override
{
if (!_recentlySpoken && victim->IsPlayer())
if (!_recentlySpoken && victim->IsPlayer() && me->IsAlive())
{
Talk(SAY_ONSLAY);
_recentlySpoken = true;

View File

@@ -111,7 +111,7 @@ public:
void KilledUnit(Unit * victim) override
{
if (!_recentlySpoken && victim->IsPlayer())
if (!_recentlySpoken && victim->IsPlayer() && me->IsAlive())
{
Talk(SAY_ONSLAY);
_recentlySpoken = true;

View File

@@ -121,7 +121,7 @@ public:
void KilledUnit(Unit* victim) override
{
if (!_recentlySpoken && victim->IsPlayer())
if (!_recentlySpoken && victim->IsPlayer() && me->IsAlive())
{
Talk(SAY_ONSLAY);
_recentlySpoken = true;