Fix syntax problems found when running tests

This commit is contained in:
Mateus Etto
2018-02-18 17:14:18 +09:00
parent 6477801d3e
commit 3171550de2
3 changed files with 111 additions and 110 deletions
+3 -3
View File
@@ -423,9 +423,9 @@ api.abortQuest = {
let questName = questScrolls[group.quest.key].text('en');
group.sendChat(`\`${user.profile.name} aborted the party quest ${questName}.\``, null, null, {
'type': 'quest_abort',
'user': user._id,
'quest': group.quest.key,
type: 'quest_abort',
user: user._id,
quest: group.quest.key,
});
let memberUpdates = User.update({
+9 -9
View File
@@ -737,18 +737,18 @@ api.castSpell = {
let message = `\`${user.profile.name} casts ${spell.text()}${targetType === 'user' ? ` on ${partyMembers.profile.name}` : ' for the party'}.\``;
if (targetType === 'user') {
party.sendChat(message, null, null, {
'type': 'spell_cast_user',
'user': user._id,
'class': klass,
'spell': spellId,
'target': partyMember._id,
type: 'spell_cast_user',
user: user._id,
class: klass,
spell: spellId,
target: partyMembers._id,
});
} else {
party.sendChat(message, null, null, {
'type': 'spell_cast_party',
'user': user._id,
'class': klass,
'spell': spellId,
type: 'spell_cast_party',
user: user._id,
class: klass,
spell: spellId,
});
}
await party.save();