(fix) Chants were referring to spells

This commit is contained in:
Marcus Netz
2021-04-28 15:56:11 +02:00
parent d29e04a103
commit e16759bc35
2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ module.exports = {
if (!isNaN(args[0])) {
return message.reply(findMessage('WRONG_ARGUMENTS'));
}
const Chant = getSpell({ Character: docs[0].character, chant_name: args[0] });
const Chant = getChant({ Character: docs[0].character, chant_name: args[0] });
if (!Chant) {
return message.reply(findMessage('CHANT_UNKNOWN'));
}

View File

@ -21,14 +21,14 @@ module.exports = {
if (args.length === 0) {
return message.reply(ReplyChantList(createChantList(Character))); //?+
}
const Spell = getChant({
const Chant = getChant({
Character: Character,
chant_name: args[0],
});
if (!Spell) {
if (!Chant) {
return message.reply(findMessage('SPELL_UNKNOWN'));
}
return message.reply(ReplyChant(Spell));
return message.reply(ReplyChant(Chant));
});
},
};