fix(Scripts/HyjalSummit): Prevent Hyjal Bosses from talking when talking when dead (#24572)
This commit is contained in:
parent
f27a1e2619
commit
6dfe65304e
4 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue