mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 11:52:32 +01:00
Core/Guilds: Fixed "Guild Mail" perk.
This commit is contained in:
@@ -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