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
|
void KilledUnit(Unit* victim) override
|
||||||
{
|
{
|
||||||
if (!_recentlySpoken && victim->IsPlayer())
|
if (!_recentlySpoken && victim->IsPlayer() && me->IsAlive())
|
||||||
{
|
{
|
||||||
Talk(SAY_ONSLAY);
|
Talk(SAY_ONSLAY);
|
||||||
_recentlySpoken = true;
|
_recentlySpoken = true;
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ public:
|
|||||||
|
|
||||||
void KilledUnit(Unit * victim) override
|
void KilledUnit(Unit * victim) override
|
||||||
{
|
{
|
||||||
if (!_recentlySpoken && victim->IsPlayer())
|
if (!_recentlySpoken && victim->IsPlayer() && me->IsAlive())
|
||||||
{
|
{
|
||||||
Talk(SAY_ONSLAY);
|
Talk(SAY_ONSLAY);
|
||||||
_recentlySpoken = true;
|
_recentlySpoken = true;
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ public:
|
|||||||
|
|
||||||
void KilledUnit(Unit * victim) override
|
void KilledUnit(Unit * victim) override
|
||||||
{
|
{
|
||||||
if (!_recentlySpoken && victim->IsPlayer())
|
if (!_recentlySpoken && victim->IsPlayer() && me->IsAlive())
|
||||||
{
|
{
|
||||||
Talk(SAY_ONSLAY);
|
Talk(SAY_ONSLAY);
|
||||||
_recentlySpoken = true;
|
_recentlySpoken = true;
|
||||||
|
|||||||
+1
-1
@@ -121,7 +121,7 @@ public:
|
|||||||
|
|
||||||
void KilledUnit(Unit* victim) override
|
void KilledUnit(Unit* victim) override
|
||||||
{
|
{
|
||||||
if (!_recentlySpoken && victim->IsPlayer())
|
if (!_recentlySpoken && victim->IsPlayer() && me->IsAlive())
|
||||||
{
|
{
|
||||||
Talk(SAY_ONSLAY);
|
Talk(SAY_ONSLAY);
|
||||||
_recentlySpoken = true;
|
_recentlySpoken = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user