mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[9602] Simplify creating mail draft with content text, cleanup includes.
This commit is contained in:
parent
b20f9138f6
commit
a27ff3e79d
12 changed files with 58 additions and 46 deletions
|
|
@ -29,6 +29,7 @@
|
|||
#include "Group.h"
|
||||
#include "ObjectGuid.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include "Mail.h"
|
||||
#include "WorldPacket.h"
|
||||
#include "Util.h"
|
||||
#include "Formulas.h"
|
||||
|
|
@ -965,7 +966,7 @@ void BattleGround::SendRewardMarkByMail(Player *plr,uint32 mark, uint32 count)
|
|||
snprintf(textBuf,300,textFormat.c_str(),GetName(),GetName());
|
||||
uint32 itemTextId = sObjectMgr.CreateItemText( textBuf );
|
||||
|
||||
MailDraft(subject, itemTextId)
|
||||
MailDraft(subject, textBuf)
|
||||
.AddItem(markItem)
|
||||
.SendMailTo(plr, MailSender(MAIL_CREATURE, bmEntry));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue