mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
fix(Core/ScriptsMgr): correct hooks name (#6434)
## Changes Proposed: - Added `virtual` for `CanSendJoinMessageArenaQueue` and `CanSendExitMessageArenaQueue` - Rename `CanExitJoinMessageArenaQueue` to `CanSendExitMessageArenaQueue`
This commit is contained in:
@@ -1199,9 +1199,26 @@ public:
|
||||
|
||||
[[nodiscard]] virtual bool CanSendMessageBGQueue(BattlegroundQueue* /*queue*/, Player* /*leader*/, Battleground* /*bg*/, PvPDifficultyEntry const* /*bracketEntry*/) { return true; }
|
||||
|
||||
[[nodiscard]] bool CanSendJoinMessageArenaQueue(BattlegroundQueue* /*queue*/, Player* /*leader*/, GroupQueueInfo* /*ginfo*/, PvPDifficultyEntry const* /*bracketEntry*/, bool /*isRated*/) { return true; }
|
||||
/**
|
||||
* @brief This hook runs before sending the join message during the arena queue, allowing you to run extra operations or disabling the join message
|
||||
*
|
||||
* @param queue Contains information about the Arena queue
|
||||
* @param leader Contains information about the player leader
|
||||
* @param ginfo Contains information about the group of the queue
|
||||
* @param bracketEntry Contains information about the bracket
|
||||
* @param isRated Contains information about rated arena or skirmish
|
||||
* @return True if you want to continue sending the message, false if you want to disable the message
|
||||
*/
|
||||
[[nodiscard]] virtual bool OnBeforeSendJoinMessageArenaQueue(BattlegroundQueue* /*queue*/, Player* /*leader*/, GroupQueueInfo* /*ginfo*/, PvPDifficultyEntry const* /*bracketEntry*/, bool /*isRated*/) { return true; }
|
||||
|
||||
[[nodiscard]] bool CanExitJoinMessageArenaQueue(BattlegroundQueue* /*queue*/, GroupQueueInfo* /*ginfo*/) { return true; }
|
||||
/**
|
||||
* @brief This hook runs before sending the exit message during the arena queue, allowing you to run extra operations or disabling the exit message
|
||||
*
|
||||
* @param queue Contains information about the Arena queue
|
||||
* @param ginfo Contains information about the group of the queue
|
||||
* @return True if you want to continue sending the message, false if you want to disable the message
|
||||
*/
|
||||
[[nodiscard]] virtual bool OnBeforeSendExitMessageArenaQueue(BattlegroundQueue* /*queue*/, GroupQueueInfo* /*ginfo*/) { return true; }
|
||||
};
|
||||
|
||||
class ArenaTeamScript : public ScriptObject
|
||||
@@ -1802,8 +1819,8 @@ public: /* BGScript */
|
||||
BattlegroundBracketId thisBracketId, BattlegroundQueue* specificQueue, BattlegroundBracketId specificBracketId);
|
||||
void OnCheckNormalMatch(BattlegroundQueue* queue, uint32& Coef, Battleground* bgTemplate, BattlegroundBracketId bracket_id, uint32& minPlayers, uint32& maxPlayers);
|
||||
bool CanSendMessageBGQueue(BattlegroundQueue* queue, Player* leader, Battleground* bg, PvPDifficultyEntry const* bracketEntry);
|
||||
bool CanSendJoinMessageArenaQueue(BattlegroundQueue* queue, Player* leader, GroupQueueInfo* ginfo, PvPDifficultyEntry const* bracketEntry, bool isRated);
|
||||
bool CanExitJoinMessageArenaQueue(BattlegroundQueue* queue, GroupQueueInfo* ginfo);
|
||||
bool OnBeforeSendJoinMessageArenaQueue(BattlegroundQueue* queue, Player* leader, GroupQueueInfo* ginfo, PvPDifficultyEntry const* bracketEntry, bool isRated);
|
||||
bool OnBeforeSendExitMessageArenaQueue(BattlegroundQueue* queue, GroupQueueInfo* ginfo);
|
||||
|
||||
public: /* Arena Team Script */
|
||||
void OnGetSlotByType(const uint32 type, uint8& slot);
|
||||
|
||||
Reference in New Issue
Block a user