Don't do line 10 unless you have other events to restrict team 2 from capping points before team 1. This is because when team 2 caps all of the points, it subtracts from the variable, and when team 1 tries to recap all of the points, they would be able to only get the variable to 0.
It would be better to create team-specific variables, and add/subtract from each respective variable. Then, checks can be carried out on both variables.
Or, upon capping a point, the value that gets added back/subtracted could change from 1 to 2, thereby counteracting any previous changes to the variable.