Don't allow food/drink to be consumed while dead

This commit is contained in:
Emagi 2025-08-27 22:04:14 -04:00
parent f1c4a91b01
commit 00ed1f99a9

View File

@ -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)) {