Fixed SRD spells not getting a random ID when inserted
fixes #64 fixes #65
This commit is contained in:
@@ -258,6 +258,7 @@ Template.spells.events({
|
|||||||
}
|
}
|
||||||
// Make the library spell into a regular spell
|
// Make the library spell into a regular spell
|
||||||
let spell = _.omit(result, "library", "attacks", "effects");
|
let spell = _.omit(result, "library", "attacks", "effects");
|
||||||
|
spell._id = spellId;
|
||||||
spell.charId = charId;
|
spell.charId = charId;
|
||||||
spell.parent = {
|
spell.parent = {
|
||||||
id: listId,
|
id: listId,
|
||||||
|
|||||||
Reference in New Issue
Block a user