mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-13 20:57:24 +01:00
Prevented users with lvl less than 10 from seeing mana
This commit is contained in:
@@ -253,6 +253,8 @@ export default {
|
|||||||
if (!this.$store.getters['members:hasClass'](this.user)) return;
|
if (!this.$store.getters['members:hasClass'](this.user)) return;
|
||||||
|
|
||||||
let mana = after - before;
|
let mana = after - before;
|
||||||
|
|
||||||
|
if (this.user.stats.lvl < 10) return;
|
||||||
this.mp(mana);
|
this.mp(mana);
|
||||||
},
|
},
|
||||||
userLvl (after, before) {
|
userLvl (after, before) {
|
||||||
@@ -506,7 +508,7 @@ export default {
|
|||||||
case 'CRON':
|
case 'CRON':
|
||||||
if (notification.data) {
|
if (notification.data) {
|
||||||
if (notification.data.hp) this.hp(notification.data.hp, 'hp');
|
if (notification.data.hp) this.hp(notification.data.hp, 'hp');
|
||||||
if (notification.data.mp) this.mp(notification.data.mp);
|
if (notification.data.mp && this.user.stats.lvl >= 10) this.mp(notification.data.mp);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'SCORED_TASK':
|
case 'SCORED_TASK':
|
||||||
|
|||||||
Reference in New Issue
Block a user