* #11828: Show a boss damage notification for skills Brutal Smash and Burst of Flames skills should show a boss damage notification Fixes #11828 * Calculate quest progress regardless of spell target.
This commit is contained in:
@@ -300,7 +300,7 @@ export default {
|
||||
const { user } = this;
|
||||
if (!user.party.quest) return 0;
|
||||
|
||||
const userQuest = this.quests[user.party.quest.key];
|
||||
const userQuest = this.quests.quests[user.party.quest.key];
|
||||
|
||||
if (!userQuest) {
|
||||
return 0;
|
||||
|
||||
@@ -77,8 +77,7 @@ export default {
|
||||
},
|
||||
async castEnd (target, type) {
|
||||
if (!this.$store.state.spellOptions.castingSpell) return null;
|
||||
let beforeQuestProgress;
|
||||
if (this.spell.target === 'party') beforeQuestProgress = this.questProgress();
|
||||
const beforeQuestProgress = this.questProgress();
|
||||
|
||||
if (!this.applyingAction) return 'No applying action';
|
||||
|
||||
@@ -153,10 +152,10 @@ export default {
|
||||
|
||||
|
||||
this.markdown(msg); // @TODO: mardown directive?
|
||||
if (!beforeQuestProgress) return null;
|
||||
|
||||
const questProgress = this.questProgress() - beforeQuestProgress;
|
||||
if (questProgress > 0) {
|
||||
const userQuest = this.quests[this.user.party.quest.key];
|
||||
const userQuest = this.quests.quests[this.user.party.quest.key];
|
||||
if (userQuest.boss) {
|
||||
this.quest('questDamage', questProgress.toFixed(1));
|
||||
} else if (userQuest.collection && userQuest.collect) {
|
||||
|
||||
Reference in New Issue
Block a user