mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
Merge branch 'master' into Playerbot
This commit is contained in:
@@ -1734,6 +1734,9 @@ bool Guild::HandleMemberWithdrawMoney(WorldSession* session, uint32 amount, bool
|
||||
if (uint32(_GetMemberRemainingMoney(*member)) < amount) // Check if we have enough slot/money today
|
||||
return false;
|
||||
|
||||
if (!(GetRankRights(member->GetRankId()) & GR_RIGHT_WITHDRAW_REPAIR) && repair)
|
||||
return false;
|
||||
|
||||
// Call script after validation and before money transfer.
|
||||
sScriptMgr->OnGuildMemberWitdrawMoney(this, player, amount, repair);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user