mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[11012] Remove battlemaster mails support as unused now.
This commit is contained in:
parent
3d551a68b5
commit
1e8ca772b3
3 changed files with 1 additions and 15 deletions
|
|
@ -38,7 +38,6 @@
|
|||
#include "Unit.h"
|
||||
#include "Language.h"
|
||||
#include "DBCStores.h"
|
||||
#include "BattleGroundMgr.h"
|
||||
#include "Item.h"
|
||||
#include "AuctionHouseMgr.h"
|
||||
|
||||
|
|
@ -1015,9 +1014,6 @@ void MailDraft::SendMailTo(MailReceiver const& receiver, MailSender const& sende
|
|||
// auction mail without any items and money (auction sale note) pending 1 hour
|
||||
if (sender.GetMailMessageType() == MAIL_AUCTION && m_items.empty() && !m_money)
|
||||
expire_delay = HOUR;
|
||||
// mail from battlemaster (rewardmarks) should last only one day
|
||||
else if (sender.GetMailMessageType() == MAIL_CREATURE && sBattleGroundMgr.GetBattleMasterBG(sender.GetSenderId()) != BATTLEGROUND_TYPE_NONE)
|
||||
expire_delay = DAY;
|
||||
// default case: expire time if COD 3 days, if no COD 30 days
|
||||
else
|
||||
expire_delay = (m_COD > 0) ? 3 * DAY : 30 * DAY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue