public override void unresolve()
{
// Only change it back if it was team. As only values from team
// Are used
if (inputType == "team")
{
// If it was the Home Team
if (inputTeam == pac.HomeTeam.Id)
{
// sets a variable to the timeouts
int timeoutsUsed = pac.HomeTeam.TimeoutsUsed;
// decriment it
timeoutsUsed--;
// If it is less than zero, set it to zero
if (timeoutsUsed < 0)
timeoutsUsed = 0;
// Sets the value to the new value
pac.HomeTeam.TimeoutsUsed = timeoutsUsed;
}
// If it was the Away Team
else
{
// Sets a variable to the timeouts
int timeoutsUsed = pac.AwayTeam.TimeoutsUsed;
//decriment it
timeoutsUsed--;
// If it is less than zero, set it to zero
if (timeoutsUsed < 0)
timeoutsUsed = 0;
// Sets the value to the new value
pac.AwayTeam.TimeoutsUsed = timeoutsUsed;
}
}
}