|
@@ -320,6 +320,7 @@ export class JournalSpellbookComponent {
|
|
|
if (result.state === 'delete') {
|
|
|
result.data.forEach((spell: Spell) => {
|
|
|
this.dataAccessor.deleteCustomSpell(spell);
|
|
|
+ this.dataAccessor.removeFavoriteSpell(spell);
|
|
|
this.deleteSpellFromPrepared(spell);
|
|
|
});
|
|
|
this.refreshFilteredSpells();
|
|
@@ -396,6 +397,7 @@ export class JournalSpellbookComponent {
|
|
|
this.addSpellToPrepared(spell);
|
|
|
} else if (message.action === 'removeFromPrepared') {
|
|
|
this.removeSpellFromPrepared(spell);
|
|
|
+ this.dataAccessor.removeFavoriteSpell(spell);
|
|
|
}
|
|
|
},
|
|
|
);
|