From e4dbf09dda1b1758a4abf1c2db31e4037100d072 Mon Sep 17 00:00:00 2001 From: Keith Holliday Date: Fri, 24 Aug 2018 23:05:36 -0500 Subject: [PATCH] Prevented users with lvl less than 10 from seeing mana --- website/client/components/notifications.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/client/components/notifications.vue b/website/client/components/notifications.vue index d05667cfed..52490aea60 100644 --- a/website/client/components/notifications.vue +++ b/website/client/components/notifications.vue @@ -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':