[Bots] Move commanded spell map to zone (#4755)

- Moves the mapping of commanded spell min levels to zone rather than to each individual bot.
- Adds support for sub spell types.
This commit is contained in:
nytmyr
2025-03-06 16:05:36 -06:00
committed by GitHub
parent 94553501ba
commit 1d4ba082ad
7 changed files with 90 additions and 64 deletions
+8 -1
View File
@@ -24,7 +24,7 @@
#include <list>
#include <map>
#include <vector>
#include "bot_structs.h"
class Bot;
class Client;
@@ -130,6 +130,9 @@ public:
bool SaveBotSettings(Mob* m);
bool DeleteBotSettings(const uint32 bot_id);
void MapCommandedSpellTypeMinLevels();
std::map<int32_t, std::map<int32_t, BotSpellTypesByClass>> GetCommandedSpellTypesMinLevels() { return commanded_spell_type_min_levels; }
/* Bot group functions */
bool LoadGroupedBotsByGroupID(const uint32 owner_id, const uint32 group_id, std::list<uint32>& group_list);
@@ -211,6 +214,10 @@ public:
private:
std::string query;
protected:
std::map<int32_t, std::map<int32_t, BotSpellTypesByClass>> commanded_spell_type_min_levels;
};
#endif