fix(Core/CharmInfo): Respect charm spell indices when adding to action bar. (#19811)

Init.
This commit is contained in:
Benjamin Jackson
2024-08-31 09:36:57 -04:00
committed by GitHub
parent 30f87a3e2f
commit 8874953862
2 changed files with 16 additions and 9 deletions

View File

@@ -140,7 +140,7 @@ public:
void InitEmptyActionBar(bool withAttack = true);
//return true if successful
bool AddSpellToActionBar(SpellInfo const* spellInfo, ActiveStates newstate = ACT_DECIDE);
bool AddSpellToActionBar(SpellInfo const* spellInfo, ActiveStates newstate = ACT_DECIDE, uint32 index = MAX_UNIT_ACTION_BAR_INDEX + 1);
bool RemoveSpellFromActionBar(uint32 spell_id);
void LoadPetActionBar(const std::string& data);
void BuildActionBar(WorldPacket* data);