[Character] Convert Delete/Save of Character Memmed Spells to Repositories (#3841)

* [Character] Convert Delete/Save of Memmed Spells to Repositories

- Converts `DeleteCharacterMemorizedSpell` and `LoadCharacterMemmedSpells` to repositories.

* Update zonedb.cpp

* Update zonedb.cpp
This commit is contained in:
Alex King
2024-01-07 00:09:12 -05:00
committed by GitHub
parent 05f09b56e6
commit bc4bebb4a9
4 changed files with 106 additions and 29 deletions
+1 -1
View File
@@ -5602,7 +5602,7 @@ void Client::UnmemSpell(int slot, bool update_client)
LogSpells("Spell [{}] forgotten from slot [{}]", m_pp.mem_spells[slot], slot);
database.DeleteCharacterMemorizedSpell(CharacterID(), m_pp.mem_spells[slot], slot);
database.DeleteCharacterMemorizedSpell(CharacterID(), slot);
if (update_client) {
MemorizeSpell(slot, m_pp.mem_spells[slot], memSpellForget);