Permalink
Browse files

Spies training needed to be set to idle when max hit.

  • Loading branch information...
1 parent 7cbc604 commit 333f48897a98ef04956a3ebd1ae7b5444187f3d7 @lemming552 lemming552 committed Feb 2, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Lacuna/DB/Result/Spies.pm
@@ -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;

0 comments on commit 333f488

Please sign in to comment.