Update client.cpp
This commit is contained in:
parent
4286879e08
commit
9871d5cee1
@ -13593,7 +13593,9 @@ bool Client::SetPetName(const char* petName) {
|
|||||||
|
|
||||||
bool Client::CheckConsumptionAllowed(int16 slot, bool send_message) {
|
bool Client::CheckConsumptionAllowed(int16 slot, bool send_message) {
|
||||||
if(!GetPlayer()->Alive()) {
|
if(!GetPlayer()->Alive()) {
|
||||||
Message(CHANNEL_NARRATIVE, "You cannot consume while dead!");
|
if(send_message) {
|
||||||
|
Message(CHANNEL_NARRATIVE, "You cannot consume while dead!");
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
switch (slot) {
|
switch (slot) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user