mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 13:16:23 +00:00
fix(Core/Mails): mails containing items not being returned if they were read and ensure mails sent by GMs are not returned (#8095)
This commit is contained in:
@@ -207,6 +207,10 @@ struct Mail
|
||||
}
|
||||
|
||||
[[nodiscard]] bool HasItems() const { return !items.empty(); }
|
||||
[[nodiscard]] bool IsSentByPlayer() const { return messageType == MAIL_NORMAL; }
|
||||
[[nodiscard]] bool IsSentByGM() const { return stationery == MAIL_STATIONERY_GM; }
|
||||
[[nodiscard]] bool IsCODPayment() const { return checked & MAIL_CHECK_MASK_COD_PAYMENT; }
|
||||
[[nodiscard]] bool IsReturnedMail() const { return checked & MAIL_CHECK_MASK_RETURNED; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user