This repository was archived by the owner on Feb 18, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathStatBoost.h
More file actions
43 lines (33 loc) · 1.39 KB
/
StatBoost.h
File metadata and controls
43 lines (33 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef MODULE_STAT_BOOST
#define MODULE_STAT_BOOST
#include "ChatCommand.h"
#include "Config.h"
#include "Spell.h"
#include "StatBoostCommon.h"
#include "StatBoostMgr.h"
using namespace Acore::ChatCommands;
class StatBoosterPlayer : public PlayerScript
{
public:
StatBoosterPlayer() : PlayerScript("StatBoosterPlayer") { }
void OnLogin(Player* player) override;
void OnLootItem(Player* player, Item* item, uint32 /*count*/, ObjectGuid /*lootguid*/) override;
void OnQuestRewardItem(Player* player, Item* item, uint32 /*count*/) override;
void OnCreateItem(Player* player, Item* item, uint32 /*count*/) override;
void OnGroupRollRewardItem(Player* player, Item* item, uint32 /*count*/, RollVote /*voteType*/, Roll* /*roll*/) override;
bool CanCastItemUseSpell(Player* /*player*/, Item* /*item*/, SpellCastTargets const& /*targets*/, uint8 /*cast_count*/, uint32 /*glyphIndex*/) override;
};
class StatBoosterWorld : public WorldScript
{
public:
StatBoosterWorld() : WorldScript("StatBoosterWorld") { }
void OnAfterConfigLoad(bool reload) override;
};
class StatBoosterCommands : public CommandScript
{
public:
StatBoosterCommands() : CommandScript("StatBoosterCommands") { }
ChatCommandTable GetCommands() const override;
static bool HandleSBAddItemCommand(ChatHandler* handler, uint32 itemId = 0, uint32 count = 0, Optional<uint32> suffixId = std::nullopt);
};
#endif