Skip to content

Commit

Permalink
Remove hard coded number in replacement for dynamic value
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebRose committed Jan 9, 2024
1 parent 071d4e9 commit 1cff9ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion managers/DraftManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func RevealScoutingAttribute(dto models.RevealAttributeDTO) bool {

warRoom := GetOnlyNFLWarRoomByTeamID(strconv.Itoa(int(dto.TeamID)))

if warRoom.ID == 0 || warRoom.SpentPoints >= 400 || warRoom.SpentPoints+dto.Points > 400 {
if warRoom.ID == 0 || warRoom.SpentPoints >= warRoom.ScoutingPoints || warRoom.SpentPoints+dto.Points > warRoom.ScoutingPoints {
return false
}

Expand Down

0 comments on commit 1cff9ef

Please sign in to comment.