Don't allow food/drink to be consumed while dead
This commit is contained in:
parent
f1c4a91b01
commit
00ed1f99a9
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user