mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
* Disallowed sending wrapped items as COD
This commit is contained in:
parent
15b085dc6d
commit
686118b665
1 changed files with 6 additions and 0 deletions
|
|
@ -190,6 +190,12 @@ void WorldSession::HandleSendMail(WorldPacket & recv_data )
|
||||||
pl->SendMailResult(0, 0, MAIL_ERR_INTERNAL_ERROR);
|
pl->SendMailResult(0, 0, MAIL_ERR_INTERNAL_ERROR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(COD && mailItem.item->HasFlag(ITEM_FIELD_FLAGS, ITEM_FLAGS_WRAPPED))
|
||||||
|
{
|
||||||
|
pl->SendMailResult(0, 0, MAIL_ERR_CANT_SEND_WRAPPED_COD);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pl->SendMailResult(0, 0, MAIL_OK);
|
pl->SendMailResult(0, 0, MAIL_OK);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue