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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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;