feat(Core/Unit): Add KillSelf overload (#14785)

Co-authored-by: jackpoz <giacomopoz@gmail.com>
This commit is contained in:
Skjalf
2023-01-28 17:57:23 -03:00
committed by GitHub
parent 6ae8ffa8e6
commit b4e3f1310b
28 changed files with 31 additions and 30 deletions

View File

@@ -306,7 +306,7 @@ public:
{
summons.DespawnEntry(_nefarianLeftTunnel);
summons.DespawnEntry(_nefarianRightTunnel);
Unit::Kill(me, me);
me->KillSelf();
}
}

View File

@@ -134,7 +134,7 @@ public:
if (summon->GetEntry() == NPC_ATTUMEN_THE_HUNTSMAN_MOUNTED)
{
summons.clear();
Unit::Kill(me, me);
me->KillSelf();
}
}

View File

@@ -206,7 +206,7 @@ public:
AttackStart(target);
return;
case EVENT_FINISH_TALK:
Unit::Kill(me, me);
me->KillSelf();
return;
}

View File

@@ -263,7 +263,7 @@ public:
break;
case EVENT_TALK_GOOD_5:
me->SetVisible(false);
Unit::Kill(me, me);
me->KillSelf();
break;
case EVENT_TALK_BAD_1:
me->SetReactState(REACT_PASSIVE);

View File

@@ -398,7 +398,7 @@ public:
switch (events2.ExecuteEvent())
{
case EVENT_KILL_SELF:
Unit::Kill(me, me);
me->KillSelf();
break;
case EVENT_REBIRTH:
me->SetVisible(true);

View File

@@ -299,7 +299,7 @@ public:
switch (events.ExecuteEvent())
{
case EVENT_SINGULARITY_DEATH:
Unit::Kill(me, me);
me->KillSelf();
break;
case EVENT_START_BLACK_HOLE:
me->RemoveAurasDueToSpell(SPELL_BLACK_HOLE_SUMMON_VISUAL2);