Save username instead of uuid (no queries necessary anymore)

This commit is contained in:
Mateus Etto
2018-02-19 00:18:29 +09:00
parent 7af71d1457
commit 477c23dd67
5 changed files with 20 additions and 40 deletions

View File

@@ -738,7 +738,7 @@ api.castSpell = {
if (targetType === 'user') {
party.sendChat(message, null, null, {
type: 'spell_cast_user',
user: user._id,
user: user.profile.name,
class: klass,
spell: spellId,
target: partyMembers._id,
@@ -746,7 +746,7 @@ api.castSpell = {
} else {
party.sendChat(message, null, null, {
type: 'spell_cast_party',
user: user._id,
user: user.profile.name,
class: klass,
spell: spellId,
});