fix 9351: sync player that casts spells immediately (#12367)

This commit is contained in:
Matteo Pagliazzi
2020-07-05 00:01:02 +02:00
committed by GitHub
parent a388abc124
commit 45a22470fa
2 changed files with 11 additions and 8 deletions
+5 -6
View File
@@ -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;