mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
feat(Core/Hooks): OnBattlegroundDesertion (#4619)
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#ifndef SC_SCRIPTMGR_H
|
||||
#define SC_SCRIPTMGR_H
|
||||
|
||||
#include "Battleground.h"
|
||||
#include "Common.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include "DBCStores.h"
|
||||
@@ -744,6 +745,9 @@ protected:
|
||||
public:
|
||||
virtual void OnPlayerReleasedGhost(Player* /*player*/) { }
|
||||
|
||||
// Called when a player does a desertion action (see BattlegroundDesertionType)
|
||||
virtual void OnBattlegroundDesertion(Player* /*player*/, BattlegroundDesertionType const /*desertionType*/) { }
|
||||
|
||||
// Called when a player completes a quest
|
||||
virtual void OnPlayerCompleteQuest(Player* /*player*/, Quest const* /*quest_id*/) { }
|
||||
|
||||
@@ -1394,6 +1398,7 @@ public: /* PlayerScript */
|
||||
void OnBeforeInitTalentForLevel(Player* player, uint8& level, uint32& talentPointsForLevel);
|
||||
void OnFirstLogin(Player* player);
|
||||
void OnPlayerCompleteQuest(Player* player, Quest const* quest);
|
||||
void OnBattlegroundDesertion(Player* player, BattlegroundDesertionType const desertionType);
|
||||
bool CanJoinInBattlegroundQueue(Player* player, uint64 BattlemasterGuid, BattlegroundTypeId BGTypeID, uint8 joinAsGroup, GroupJoinBattlegroundResult& err);
|
||||
bool ShouldBeRewardedWithMoneyInsteadOfExp(Player* player);
|
||||
void OnBeforeTempSummonInitStats(Player* player, TempSummon* tempSummon, uint32& duration);
|
||||
|
||||
Reference in New Issue
Block a user