Skip to content

Commit

Permalink
Spies training needed to be set to idle when max hit.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemming552 committed Feb 2, 2014
1 parent 7cbc604 commit 333f488
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Lacuna/DB/Result/Spies.pm
Expand Up @@ -426,6 +426,7 @@ sub is_available {
my $fskill = $self->$tr_skill + $points_to_add;
$fskill = $max_points if ($fskill > $max_points);
$self->$tr_skill($fskill);
$self->task('Idle') if ($fskill >= $max_points);
$self->started_assignment($now->clone->subtract(minutes => $remain_min)); # Put time at now with remainder
$self->update_level;
$self->update;
Expand Down

0 comments on commit 333f488

Please sign in to comment.