Added sync on mage fireball spell

This commit is contained in:
kholliday
2015-03-26 00:18:18 -05:00
parent 98220ed0e5
commit 258da77586
2 changed files with 10 additions and 6 deletions

View File

@@ -521,6 +521,9 @@ api.spells =
#console.log {bonus, expBonus:bonus,upBonus:bonus*.1} #console.log {bonus, expBonus:bonus,upBonus:bonus*.1}
user.stats.exp += diminishingReturns(bonus,75) user.stats.exp += diminishingReturns(bonus,75)
user.party.quest.progress.up += diminishingReturns(bonus*.1,50,30) user.party.quest.progress.up += diminishingReturns(bonus*.1,50,30)
#Sync the user stats to see if we level the user
req = { language: user.preferences.language }
user.fns.updateStats( user.stats , req )
mpheal: mpheal:
text: t('spellWizardMPHealText') text: t('spellWizardMPHealText')

View File

@@ -228,6 +228,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
case 'party': msg = window.env.t('youCastParty', {spell: spell.text()});break; case 'party': msg = window.env.t('youCastParty', {spell: spell.text()});break;
} }
Notification.text(msg); Notification.text(msg);
User.sync();
}); });
} }