[DiscordArchive] as example you mean this
[DiscordArchive] as example you mean this
Archived author: Crane • Posted: 2025-07-13T10:56:53.302000+00:00
Original source
as example you mean this
```void OnUnitDeath(Unit* unit) override
{
if (!playerDied && unit->IsPlayer() && IsEncounterInProgress())
{
playerDied = true;
SaveToDB();
}
if (Creature* creature = unit->ToCreature())
if (creature->GetEntry() == NPC_BIGGLESWORTH)
{
// Loads Kel'Thuzad's grid. We need this as he must be active in order for his texts to work.
instance->LoadGrid(3749.67f, -5114.06f);
if (Creature* kelthuzad = instance->GetCreature(KelthuzadGUID))
kelthuzad->AI()->Talk(SAY_KELTHUZAD_CAT_DIED);
}
}
```
if you kill the cat ?