Fix syntax problems found when running tests
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user