mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Core/Guild): Require repair rights in order to make use of guild repairs. (#19836)
* Init. * Ensure only repair requests are screened. * Adjust parentheses.
This commit is contained in:
@@ -1705,6 +1705,9 @@ bool Guild::HandleMemberWithdrawMoney(WorldSession* session, uint32 amount, bool
|
|||||||
if (uint32(_GetMemberRemainingMoney(*member)) < amount) // Check if we have enough slot/money today
|
if (uint32(_GetMemberRemainingMoney(*member)) < amount) // Check if we have enough slot/money today
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (!(_GetRankRights(member->GetRankId()) & GR_RIGHT_WITHDRAW_REPAIR) && repair)
|
||||||
|
return false;
|
||||||
|
|
||||||
// Call script after validation and before money transfer.
|
// Call script after validation and before money transfer.
|
||||||
sScriptMgr->OnGuildMemberWitdrawMoney(this, player, amount, repair);
|
sScriptMgr->OnGuildMemberWitdrawMoney(this, player, amount, repair);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user