Use getTeam(), not getType()