mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-27 22:16:11 +00:00
fix(Scripts/HyjalSummit): Prevent Hyjal Bosses from talking when talking when dead (#24572)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user