mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-13 04:37:36 +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;
|
||||
|
||||
let mana = after - before;
|
||||
|
||||
if (this.user.stats.lvl < 10) return;
|
||||
this.mp(mana);
|
||||
},
|
||||
userLvl (after, before) {
|
||||
@@ -506,7 +508,7 @@ export default {
|
||||
case 'CRON':
|
||||
if (notification.data) {
|
||||
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;
|
||||
case 'SCORED_TASK':
|
||||
|
||||
Reference in New Issue
Block a user