[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 authored and GitHub committed 2024-01-06 23:09:12 -06:00
1 parent 05f09b56e6
commit bc4bebb4a9
4 files changed
+106 -29

No files matched your search

+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);