fix 9351: sync player that casts spells immediately (#12367)
This commit is contained in:
@@ -137,6 +137,11 @@ export default {
|
||||
targetId,
|
||||
pinType: spell.pinType,
|
||||
});
|
||||
|
||||
if (apiResult.data.data.user) {
|
||||
Object.assign(this.$store.state.user.data, apiResult.data.data.user);
|
||||
}
|
||||
|
||||
let msg = '';
|
||||
|
||||
switch (type) {
|
||||
@@ -166,12 +171,6 @@ export default {
|
||||
break;
|
||||
}
|
||||
|
||||
if (spell.pinType === 'card') {
|
||||
const newUserGp = apiResult.data.data.user.stats.gp;
|
||||
this.$store.state.user.data.stats.gp = newUserGp;
|
||||
}
|
||||
|
||||
|
||||
this.markdown(msg); // @TODO: mardown directive?
|
||||
|
||||
const questProgress = this.questProgress() - beforeQuestProgress;
|
||||
|
||||
Reference in New Issue
Block a user