fix(Scripts/SlavePens): spawn Ahune loot chest when killed during submerge (#26298)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Andrew
2026-06-21 11:16:41 -03:00
committed by GitHub
parent a8bdd0725e
commit ed6043e638
@@ -304,11 +304,11 @@ struct npc_frozen_core : public ScriptedAI
void JustDied(Unit* /*killer*/) override void JustDied(Unit* /*killer*/) override
{ {
if (Creature* ahune = _instance->GetCreature(DATA_AHUNE))
Unit::Kill(me, ahune);
DoCastSelf(SPELL_SUMMON_LOOT_MISSILE, true); DoCastSelf(SPELL_SUMMON_LOOT_MISSILE, true);
DoCastSelf(SPELL_MINION_DESPAWNER, true); DoCastSelf(SPELL_MINION_DESPAWNER, true);
if (Creature* ahune = _instance->GetCreature(DATA_AHUNE))
Unit::Kill(me, ahune);
} }
void DoAction(int32 action) override void DoAction(int32 action) override