mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 20:58:51 +00:00
Frost spell buff won't affect challenge or group dailies (#13582)
This commit is contained in:
parent
91f8be61c4
commit
4f07075159
1 changed files with 2 additions and 1 deletions
|
|
@ -286,7 +286,8 @@ export default function scoreTask (options = {}, req = {}, analytics) {
|
|||
if (cron) {
|
||||
delta += _changeTaskValue(user, task, direction, times, cron);
|
||||
_subtractPoints(user, task, stats, delta);
|
||||
if (!user.stats.buffs.streaks) task.streak = 0;
|
||||
// Chilling frost should not affect challenge or group dailies
|
||||
if (!user.stats.buffs.streaks || task.challenge.id || task.group.id) task.streak = 0;
|
||||
} else {
|
||||
delta += _changeTaskValue(user, task, direction, times, cron);
|
||||
if (direction === 'down') delta = _calculateDelta(task, direction, cron); // recalculate delta for unchecking so the gp and exp come out correctly
|
||||
|
|
|
|||
Loading…
Reference in a new issue