mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-01 01:53:47 +00:00
feat(Core/Unit): Add KillSelf overload (#14785)
Co-authored-by: jackpoz <giacomopoz@gmail.com>
This commit is contained in:
@@ -733,7 +733,7 @@ struct npc_dark_iron_guzzler : public ScriptedAI
|
||||
if (me->IsAlive() && spellInfo->Id == SPELL_PLAYER_MUG)
|
||||
{
|
||||
me->CastSpell(me, SPELL_MUG_BOUNCE_BACK, true);
|
||||
Unit::Kill(me, me);
|
||||
me->KillSelf();
|
||||
me->CastSpell(me, SPELL_REPORT_DEATH, true);
|
||||
}
|
||||
}
|
||||
@@ -795,7 +795,7 @@ struct npc_brewfest_super_brew_trigger : public ScriptedAI
|
||||
{
|
||||
player->CastSpell(player, SPELL_DRUNKEN_MASTER, true);
|
||||
me->RemoveAllGameObjects();
|
||||
Unit::Kill(me, me);
|
||||
me->KillSelf();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user