port spells to api-v3

This commit is contained in:
Matteo Pagliazzi
2016-03-02 13:05:17 +01:00
parent 8920b05f9e
commit 05b6e25c28
2 changed files with 125 additions and 3 deletions

View File

@@ -218,10 +218,10 @@ spells.healer = {
text: t('spellHealerBrightnessText'),
mana: 15,
lvl: 12,
target: 'self',
target: 'tasks',
notes: t('spellHealerBrightnessNotes'),
cast (user) {
_.each(user.tasks, (task) => {
cast (user, tasks) {
_.each(tasks, (task) => {
if (task.type !== 'reward') {
task.value += 4 * (user._statsComputed.int / (user._statsComputed.int + 40));
}