From 00ed1f99a98ecccebae6ddbf981a9d4e293f95a4 Mon Sep 17 00:00:00 2001 From: Emagi Date: Wed, 27 Aug 2025 22:04:14 -0400 Subject: [PATCH] Don't allow food/drink to be consumed while dead --- source/WorldServer/client.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/WorldServer/client.cpp b/source/WorldServer/client.cpp index e069ac9..b670159 100644 --- a/source/WorldServer/client.cpp +++ b/source/WorldServer/client.cpp @@ -13592,6 +13592,10 @@ bool Client::SetPetName(const char* petName) { } bool Client::CheckConsumptionAllowed(int16 slot, bool send_message) { + if(!GetPlayer()->Alive()) { + Message(CHANNEL_NARRATIVE, "You cannot consume while dead!"); + return false; + } switch (slot) { case EQ2_FOOD_SLOT: { if (GetPlayer()->GetSpellEffectBySpellType(SPELL_TYPE_FOOD)) {