Core/Guilds: Fixed "Guild Mail" perk.
This commit is contained in:
1 parent
dc175a2a4c
commit
6ca3723f0e
1 file changed
+5
@@ -337,6 +337,11 @@ void WorldSession::HandleSendMail(WorldPacket& recvData)
|
|||||||
// If theres is an item, there is a one hour delivery delay if sent to another account's character.
|
// If theres is an item, there is a one hour delivery delay if sent to another account's character.
|
||||||
uint32 deliver_delay = needItemDelay ? sWorld->getIntConfig(CONFIG_MAIL_DELIVERY_DELAY) : 0;
|
uint32 deliver_delay = needItemDelay ? sWorld->getIntConfig(CONFIG_MAIL_DELIVERY_DELAY) : 0;
|
||||||
|
|
||||||
|
// Mail sent between guild members arrives instantly if they have the guild perk "Guild Mail"
|
||||||
|
if (Guild* guild = player->GetGuild())
|
||||||
|
if (guild->GetLevel() >= 17 && guild->IsMember(receiverGuid))
|
||||||
|
delivery_delay = 0;
|
||||||
|
|
||||||
// will delete item or place to receiver mail list
|
// will delete item or place to receiver mail list
|
||||||
draft
|
draft
|
||||||
.AddMoney(money)
|
.AddMoney(money)
|
||||||
|
|||||||
Reference in new issue
Block a user